From 2e65045f215695622e9fc9c48e0dafe80184874b Mon Sep 17 00:00:00 2001 From: Fabrice Lecomte Date: Fri, 19 Jul 2019 09:39:03 +0200 Subject: [PATCH] refactoring: change gradle file to kts --- build.gradle | 44 -------------------------------------------- build.gradle.kts | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+), 44 deletions(-) delete mode 100644 build.gradle create mode 100644 build.gradle.kts diff --git a/build.gradle b/build.gradle deleted file mode 100644 index e3d0ccc..0000000 --- a/build.gradle +++ /dev/null @@ -1,44 +0,0 @@ -plugins { - id 'maven-publish' - id 'org.jetbrains.kotlin.jvm' version '1.3.31' -} - -apply plugin: 'kotlin' - -group 'fr.postgresjson' -version '0.1' - -repositories { - mavenCentral() - jcenter() -} - -dependencies { - implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8" - implementation "org.jetbrains.kotlin:kotlin-reflect:1.3.31" - implementation "com.fasterxml.jackson.module:jackson-module-kotlin:2.9.9" - implementation "com.github.jasync-sql:jasync-postgresql:0.9.53" - implementation "org.slf4j:slf4j-api:1.7.26" - - testImplementation "ch.qos.logback:logback-classic:1.2.3" - testImplementation "ch.qos.logback:logback-core:1.2.3" - testImplementation "io.mockk:mockk:1.9" - testImplementation "org.junit.jupiter:junit-jupiter:5.4.2" - testImplementation 'org.amshove.kluent:kluent:1.47' -} - -compileKotlin { - kotlinOptions.jvmTarget = "1.8" -} - -compileTestKotlin { - kotlinOptions.jvmTarget = "1.8" -} - -publishing { - publications { - mavenJava(MavenPublication) { - from components.java - } - } -} diff --git a/build.gradle.kts b/build.gradle.kts new file mode 100644 index 0000000..172817a --- /dev/null +++ b/build.gradle.kts @@ -0,0 +1,40 @@ +plugins { + id("maven-publish") + id("org.jetbrains.kotlin.jvm") version "1.3.31" +} + +apply(plugin = "kotlin") + +group = "fr.postgresjson" +version = "0.1" + +repositories { + mavenCentral() + jcenter() +} + +dependencies { + implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8") + implementation("org.jetbrains.kotlin:kotlin-reflect:1.3.31") + implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.9.9") + implementation("com.github.jasync-sql:jasync-postgresql:0.9.53") + implementation("org.slf4j:slf4j-api:1.7.26") + + testImplementation("ch.qos.logback:logback-classic:1.2.3") + testImplementation("ch.qos.logback:logback-core:1.2.3") + testImplementation("io.mockk:mockk:1.9") + testImplementation("org.junit.jupiter:junit-jupiter:5.4.2") + testImplementation("org.amshove.kluent:kluent:1.47") +} + +publishing { + publications { + create("maven") { + groupId = "fr.postgresjson" + artifactId = "postgresjson" + version = "0.1" + + from(components["java"]) + } + } +}