@@ -4,25 +4,25 @@ import java.util.*
4
4
rootProject.extra.set(" artifactVersion" , SimpleDateFormat (" yyyy-MM-dd\' T\' HH-mm-ss" ).format(Date ()))
5
5
6
6
plugins {
7
- id(" maven-publish" )
8
- id(" com.github.ben-manes.versions" ) version " 0.51.0"
9
- id(" net.ossindex.audit" ) version " 0.4.11"
10
- id(" io.freefair.maven-central.validate-poms" ) version " 8.11"
11
- id(" io.github.gradle-nexus.publish-plugin" ) version " 2.0.0"
12
- id( " org.jetbrains.kotlin.jvm " ) version " 2.1.0 " apply false
13
- id(" com.google.devtools.ksp" ) version " 2.1.0-1.0.29" apply false
14
- id(" org.openapi.generator" ) version " 7.10.0" apply false
15
- id(" org.jlleitschuh.gradle.ktlint" ) version " 12.1.2" apply false
7
+ id(" maven-publish" )
8
+ id(" com.github.ben-manes.versions" ) version " 0.51.0"
9
+ id(" net.ossindex.audit" ) version " 0.4.11"
10
+ id(" io.freefair.maven-central.validate-poms" ) version " 8.11"
11
+ id(" io.github.gradle-nexus.publish-plugin" ) version " 2.0.0"
12
+ alias(libs.plugins.kotlinJvm) apply false
13
+ id(" com.google.devtools.ksp" ) version " 2.1.0-1.0.29" apply false
14
+ id(" org.openapi.generator" ) version " 7.10.0" apply false
15
+ id(" org.jlleitschuh.gradle.ktlint" ) version " 12.1.2" apply false
16
16
}
17
17
18
18
val 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,
26
26
)
27
27
28
28
val dependencyGroupVersions = mapOf<String , String >(
@@ -31,32 +31,32 @@ val dependencyGroupVersions = mapOf<String, String>(
31
31
)
32
32
33
33
subprojects {
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
+ }
42
44
}
43
- }
44
45
}
45
- }
46
46
}
47
47
48
48
fun findProperty (s : String ) = project.findProperty(s) as String?
49
49
50
50
val isSnapshot = project.version == " unspecified"
51
51
nexusPublishing {
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
+ }
60
61
}
61
- }
62
62
}
0 commit comments