1
- buildscript {
2
- dependencies {
3
- classpath " pl.allegro.tech.build:axion-release-plugin:1.14.4"
4
- }
5
-
6
- configurations. all {
7
- resolutionStrategy. dependencySubstitution {
8
- substitute module(" com.jcraft:jsch" ) using module(" com.github.mwiede:jsch:0.2.17" ) because " jcraft is unmaintained"
9
- substitute module(" com.jcraft:jsch.agentproxy" ) using module(" com.github.mwiede:jsch:0.2.17" ) because " jcraft is unmaintained"
10
- substitute module(" com.jcraft:jzlib" ) using module(" com.github.mwiede:jsch:0.2.17" ) because " jcraft is unmaintained"
11
- }
12
- }
13
- }
14
-
15
1
plugins {
16
2
id ' datadog.gradle-debug'
17
3
id ' datadog.dependency-locking'
@@ -20,7 +6,7 @@ plugins {
20
6
id ' com.github.spotbugs' version ' 5.0.14'
21
7
id ' de.thetaphi.forbiddenapis' version ' 3.8'
22
8
23
- id ' pl.allegro.tech.build.axion-release ' version ' 1.14.4 '
9
+ id ' org.shipkit.shipkit-auto-version ' version ' 2.1.2 '
24
10
id ' io.github.gradle-nexus.publish-plugin' version ' 2.0.0'
25
11
26
12
id ' com.gradleup.shadow' version ' 8.3.6' apply false
@@ -34,7 +20,6 @@ description = 'dd-trace-java'
34
20
def isCI = System . getenv(" CI" ) != null
35
21
36
22
apply from : " $rootDir /gradle/repositories.gradle"
37
- apply from : " $rootDir /gradle/scm.gradle"
38
23
39
24
spotless {
40
25
// only resolve the spotless dependencies once in the build
@@ -69,9 +54,11 @@ apply from: "$rootDir/gradle/spotless.gradle"
69
54
70
55
def compileTask = tasks. register(" compile" )
71
56
57
+ def repoVersion = version
58
+
72
59
allprojects {
73
60
group = ' com.datadoghq'
74
- version = scmVersion . version
61
+ version = repoVersion
75
62
76
63
if (isCI) {
77
64
buildDir = " $rootDir /workspace/${ projectDir.path.replace(rootDir.path, '')} /build/"
@@ -119,7 +106,7 @@ nexusPublishing {
119
106
120
107
def writeMainVersionFileTask = tasks. register(' writeMainVersionFile' ) {
121
108
def versionFile = file(" ${ rootProject.buildDir} /main.version" )
122
- inputs. property " version" , scmVersion . version
109
+ inputs. property " version" , project . version
123
110
outputs. file versionFile
124
111
125
112
doFirst {
0 commit comments