Browse Source

Move nokee version definition to root gradle.properties

Remove unused shadow.version
pull/187/head
weisj 5 years ago
parent
commit
cc6ec5e520
  1. 11
      buildSrc/build.gradle.kts
  2. 6
      core/build.gradle.kts
  3. 2
      gradle.properties
  4. 10
      gradle/loadProps.gradle.kts

11
buildSrc/build.gradle.kts

@ -1,10 +1,15 @@
apply(from= "../gradle/loadProps.gradle.kts")
plugins {
`java-gradle-plugin`
`kotlin-dsl`
groovy
}
val nokeeVersion = extra["nokee.version"]
dependencies {
implementation(platform("dev.nokee:nokee-gradle-plugins:0.4.0-60cff2b"))
implementation(platform("dev.nokee:nokee-gradle-plugins:$nokeeVersion"))
}
repositories {
@ -26,3 +31,7 @@ gradlePlugin {
}
}
}
configure<KotlinDslPluginOptions> {
experimentalWarning.set(false)
}

6
core/build.gradle.kts

@ -31,7 +31,7 @@ tasks.test {
workingDir.mkdirs()
}
tasks.jar {
fun Jar.includeLicenses() {
CrLfSpec(LineEndings.LF).run {
into("META-INF") {
filteringCharset = "UTF-8"
@ -43,6 +43,10 @@ tasks.jar {
}
}
tasks.jar {
includeLicenses()
}
val makeDocumentation by tasks.registering(JavaExec::class) {
group = "Development"
description = "Builds the documentation"

2
gradle.properties

@ -9,9 +9,9 @@ systemProp.org.gradle.internal.publish.checksums.insecure = true
darklaf.version = 2.3.1
# Plugins
shadow.version = 5.1.0
com.github.vlsi.vlsi-release-plugins.version = 1.70
com.github.autostyle.version = 3.1
nokee.version = 0.4.0-60cff2b
# Dependencies
jna.version = 5.5.0

10
gradle/loadProps.gradle.kts

@ -0,0 +1,10 @@
import java.io.FileInputStream
import java.util.Properties
val properties = Properties()
FileInputStream(File("${rootProject.rootDir}/../gradle.properties")).use {
properties.load(it)
}
properties.stringPropertyNames().forEach {
extra[it] = properties[it]
}
Loading…
Cancel
Save