我正在尝试构建一个小的库,该库将记录请求时间。该部分工作正常,但是当我尝试发布到本地存储库时,什么也没发生。
我的gradle.build
buildscript {
ext {
kotlinVersion = '1.3.11'
springBootVersion = '2.1.1.RELEASE'
}
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}")
}
}
apply plugin: 'kotlin'
apply plugin: 'eclipse'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'maven-publish'
jar {
baseName = 'request-time-logger'
version = '0.0.1-SNAPSHOT'
}
group 'dk.fitfit.spring'
version '0.0.1-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
compile('org.springframework.boot:spring-boot-starter-web')
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
正如标题所示,我正在执行./gradlew publishToMavenLocal(和./gradlew publishToMaven),但没有任何反应。有人知道我在做什么错吗?
可以找到完整的存储库here