bjonnh
03/27/2020, 4:29 PMFleshgrinder
03/27/2020, 4:32 PMallprojects { version = "1234" }
if you want all your projects to have the same version.bjonnh
03/27/2020, 4:34 PMimport org.jetbrains.kotlin.gradle.tasks.KotlinCompile
var ktorVersion = "1.3.2"
var serializationRuntimeVersion = "0.20.0"
var jenaVersion = "3.14.0"
var kotlinVersion = "1.3.71"
var arrowVersion = "0.10.4"
val rdf4kVersion = "0.1.1"
val springBootVersion = "2.2.5.RELEASE"
val moshiVersion = "1.8.0"
val jsonldVersion = "0.13.0"
val kotlinLoggingVersion = "1.7.6"
val woodstoxVersion = "5.2.0"
val junitApiVersion = "5.6.0"
val postgresVersion = "42.2.5"
val cliktVersion = "2.6.0"
plugins {
val kotlinVersion = "1.3.71"
id("nebula.kotlin") version kotlinVersion // sets up kotlin and kotlin versions
kotlin("plugin.spring") version kotlinVersion
kotlin("plugin.jpa") version kotlinVersion
id("org.springframework.boot") version "2.2.5.RELEASE"
id("io.spring.dependency-management") version "1.0.9.RELEASE"
id("kotlinx-serialization") version kotlinVersion
id("com.github.ben-manes.versions") version "0.21.0"
//id("org.jetbrains.dokka") version "0.9.18"
}
buildscript {
val kotlinVersion = "1.3.71"
repositories {
mavenCentral()
}
dependencies {
classpath("org.jetbrains.kotlin:kotlin-allopen:$kotlinVersion")
classpath(kotlin("gradle-plugin", kotlinVersion))
classpath("org.jetbrains.kotlin:kotlin-serialization:$kotlinVersion")
}
}
Fleshgrinder
03/27/2020, 4:38 PMbuildSrc/settings.gradle.kts
file that configures the Kotlin plugin and you include that in your settings.gradle.kts
file with apply
..kotlin-version
file in the root and read its contents.bjonnh
03/27/2020, 4:40 PMFleshgrinder
03/27/2020, 4:44 PMversions.gradle.kts
script with an object v { const val foo = "1.2.3" }
in it which you then include. However, I believe that IntelliJ is still not able to auto-complete that for you.bjonnh
03/27/2020, 4:44 PMFleshgrinder
03/27/2020, 4:45 PMbuildscript
as you have it with normal Gradle, unless you are using an ancient version.bjonnh
03/27/2020, 4:47 PM