@@ -4,25 +4,25 @@ import java.util.*
44rootProject.extra.set(" artifactVersion" SimpleDateFormat (" yyyy-MM-dd\' T\' HH-mm-ss" Date ()))
55
66plugins {
7-   id(" maven-publish" 
8-   id(" com.github.ben-manes.versions" " 0.51.0" 
9-   id(" net.ossindex.audit" " 0.4.11" 
10-   id(" io.freefair.maven-central.validate-poms" " 8.11" 
11-   id(" io.github.gradle-nexus.publish-plugin" " 2.0.0" 
12-   id( " org.jetbrains.kotlin.jvm " ) version  " 2.1.0 " false 
13-   id(" com.google.devtools.ksp" " 2.1.0-1.0.29" false 
14-   id(" org.openapi.generator" " 7.10.0" false 
15-   id(" org.jlleitschuh.gradle.ktlint" " 12.1.2" false 
7+      id(" maven-publish" 
8+      id(" com.github.ben-manes.versions" " 0.51.0" 
9+      id(" net.ossindex.audit" " 0.4.11" 
10+      id(" io.freefair.maven-central.validate-poms" " 8.11" 
11+      id(" io.github.gradle-nexus.publish-plugin" " 2.0.0" 
12+     alias(libs.plugins.kotlinJvm)  apply false 
13+      id(" com.google.devtools.ksp" " 2.1.0-1.0.29" false 
14+      id(" org.openapi.generator" " 7.10.0" false 
15+      id(" org.jlleitschuh.gradle.ktlint" " 12.1.2" false 
1616}
1717
1818val  dependencyVersions =  listOf (
19-   " org.jetbrains.kotlin:kotlin-reflect:2.1.0 " 
20-   " org.jetbrains.kotlin:kotlin-script-runtime:2.1.0 " 
21-   " org.jetbrains.kotlin:kotlin-stdlib:2.1.0 " 
22-   " org.jetbrains.kotlin:kotlin-stdlib-common:2.1.0 " 
23-   " org.jetbrains.kotlin:kotlin-stdlib-jdk7:2.1.0 " 
24-   " org.jetbrains.kotlin:kotlin-stdlib-jdk8:2.1.0 " 
25-   " org .slf4j:slf4j-api:2.0.16 " 
19+     libs.kotlinReflect ,
20+     libs.kotlinScriptRuntime ,
21+     libs.kotlinStdlib ,
22+     libs.kotlinCommon ,
23+     libs.kotlinJdk7 ,
24+     libs.kotlinJdk8 ,
25+     libs .slf4j,
2626)
2727
2828val  dependencyGroupVersions =  mapOf<String , String >(
@@ -31,32 +31,32 @@ val dependencyGroupVersions = mapOf<String, String>(
3131)
3232
3333subprojects {
34-   configurations.all {
35-     resolutionStrategy {
36-       failOnVersionConflict()
37-       force(dependencyVersions)
38-       eachDependency {
39-         val  forcedVersion =  dependencyGroupVersions[requested.group]
40-         if  (forcedVersion !=  null ) {
41-           useVersion(forcedVersion)
34+     configurations.all {
35+         resolutionStrategy {
36+             failOnVersionConflict()
37+             force(dependencyVersions)
38+             eachDependency {
39+                 val  forcedVersion =  dependencyGroupVersions[requested.group]
40+                 if  (forcedVersion !=  null ) {
41+                     useVersion(forcedVersion)
42+                 }
43+             }
4244        }
43-       }
4445    }
45-   }
4646}
4747
4848fun  findProperty (s :  String ) =  project.findProperty(s) as  String? 
4949
5050val  isSnapshot =  project.version ==  " unspecified" 
5151nexusPublishing {
52-   repositories {
53-     if  (! isSnapshot) {
54-       sonatype {
55-         //  'sonatype' is pre-configured for Sonatype Nexus (OSSRH) which is used for The Central Repository
56-         stagingProfileId.set(System .getenv(" SONATYPE_STAGING_PROFILE_ID" ? :  findProperty(" sonatype.staging.profile.id" // can reduce execution time by even 10 seconds
57-         username.set(System .getenv(" SONATYPE_USERNAME" ? :  findProperty(" sonatype.username" 
58-         password.set(System .getenv(" SONATYPE_PASSWORD" ? :  findProperty(" sonatype.password" 
59-       }
52+     repositories {
53+         if  (! isSnapshot) {
54+             sonatype {
55+                 //  'sonatype' is pre-configured for Sonatype Nexus (OSSRH) which is used for The Central Repository
56+                 stagingProfileId.set(System .getenv(" SONATYPE_STAGING_PROFILE_ID" ? :  findProperty(" sonatype.staging.profile.id" // can reduce execution time by even 10 seconds
57+                 username.set(System .getenv(" SONATYPE_USERNAME" ? :  findProperty(" sonatype.username" 
58+                 password.set(System .getenv(" SONATYPE_PASSWORD" ? :  findProperty(" sonatype.password" 
59+             }
60+         }
6061    }
61-   }
6262}
0 commit comments