11val kotlinVersion = " 2.1.21"
22
33plugins {
4+ idea
45 kotlin(" jvm" ) version " 2.1.21"
56 id(" com.adarshr.test-logger" ) version " 4.0.0"
6- `maven- publish`
7- signing
8- idea
7+ id(" com.vanniktech.maven.publish" ) version " 0.33.0"
98}
109
1110group = " net.igsoft"
12- version = " 0.5 .0"
11+ version = " 0.6 .0"
1312
1413repositories {
1514 mavenCentral()
1615}
1716
18- java {
19- toolchain {
20- languageVersion.set(JavaLanguageVersion .of(17 ))
21- }
22-
23- withJavadocJar()
24- withSourcesJar()
17+ kotlin {
18+ jvmToolchain(17 )
2519}
2620
2721testlogger {
@@ -33,77 +27,52 @@ tasks.test {
3327 useJUnitPlatform()
3428}
3529
36- val licencesSpec = Action <MavenPomLicenseSpec > {
37- license {
38- name.set(" MIT License" )
39- url.set(" https://opensource.org/licenses/MIT" )
40- }
41- }
42-
43- val developersSpec = Action <MavenPomDeveloperSpec > {
44- developer {
45- id.set(" aartiPl" )
46- name.set(" Marcin Kuszczak" )
47- email.set(" aarti@interia.pl" )
48- }
49- }
50-
51- val scmSpec = Action <MavenPomScm > {
52- connection.set(" scm:git:git://https://github.com/aartiPl/funclient.git" )
53- developerConnection.set(" scm:git:ssh:https://github.com/aartiPl/funclient.git" )
54- url.set(" https://github.com/aartiPl/funclient/tree/master" )
55- }
56-
57- publishing {
58- publications {
59- create<MavenPublication >(" funclient" ) {
60- artifactId = " funclient"
61- from(components[" java" ])
62-
63- pom {
64- name.set(" funclient" )
65- description.set(" FunClient - HTTP client - functional way" )
66- url.set(" https://github.com/aartiPl/funclient" )
30+ mavenPublishing {
31+ pom {
32+ name.set(" funclient" )
33+ description.set(" FunClient - HTTP client - functional way" )
34+ url.set(" https://github.com/aartiPl/funclient" )
6735
68- licenses(licencesSpec)
69- developers(developersSpec)
70- scm(scmSpec)
36+ licenses {
37+ license {
38+ name.set(" MIT License" )
39+ url.set(" https://opensource.org/licenses/MIT" )
7140 }
7241 }
73- }
74-
75- repositories {
76- maven {
77- val releasesRepoUrl = " https://oss.sonatype.org/service/local/staging/deploy/maven2/"
78- val snapshotsRepoUrl = " https://oss.sonatype.org/content/repositories/snapshots/"
79- url = uri(if (project.version.toString().endsWith(" SNAPSHOT" )) snapshotsRepoUrl else releasesRepoUrl)
80-
81- credentials {
82- username = project.findProperty(" sonatype.user" ) as String? ? : System .getenv(" SONATYPE_USER" )
83- password = project.findProperty(" sonatype.password" ) as String? ? : System .getenv(" SONATYPE_PASSWORD" )
42+ developers {
43+ developer {
44+ id.set(" aartiPl" )
45+ name.set(" Marcin Kuszczak" )
46+ email.set(" aarti@interia.pl" )
8447 }
8548 }
49+ scm {
50+ connection.set(" scm:git:git://https://github.com/aartiPl/funclient.git" )
51+ developerConnection.set(" scm:git:ssh:https://github.com/aartiPl/funclient.git" )
52+ url.set(" https://github.com/aartiPl/funclient/tree/master" )
53+ }
8654 }
87- }
8855
89- signing {
90- sign(publishing.publications[ " funclient " ] )
56+ publishToMavenCentral()
57+ signAllPublications( )
9158}
9259
9360dependencies {
9461 implementation(" org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion " )
9562 implementation(" org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion " )
63+
9664 implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-core:1.10.2" )
9765
9866 implementation(" org.apache.commons:commons-lang3:3.17.0" )
99- implementation(" com.konghq:unirest-java:3.14.5" )
10067 implementation(" com.google.code.gson:gson:2.13.1" )
10168
102- testImplementation(" org.junit.platform:junit-platform-suite-engine:1.9.0" )
103- testImplementation(" org.junit.platform:junit-platform-suite-api:1.9.0" )
104- testImplementation(" org.junit.platform:junit-platform-suite-commons:1.9.0" )
105- testImplementation(" org.junit.jupiter:junit-jupiter-engine:5.9.0" )
106- testImplementation(" org.junit.jupiter:junit-jupiter-params:5.9.0" )
69+ val junitVersion = " 6.0.0-M1"
70+ testImplementation(" org.junit.platform:junit-platform-suite-engine:$junitVersion " )
71+ testImplementation(" org.junit.platform:junit-platform-suite-api:$junitVersion " )
72+ testImplementation(" org.junit.platform:junit-platform-suite-commons:$junitVersion " )
73+ testImplementation(" org.junit.jupiter:junit-jupiter-engine:$junitVersion " )
74+ testImplementation(" org.junit.jupiter:junit-jupiter-params:$junitVersion " )
75+
10776 testImplementation(" com.willowtreeapps.assertk:assertk-jvm:0.28.1" )
10877 testImplementation(" io.mockk:mockk:1.14.4" )
10978}
0 commit comments