Skip to content

Commit 5604157

Browse files
committed
fix: making test fixtures in regression tests gradle 9 compatible
1 parent 05ea5d3 commit 5604157

File tree

1 file changed

+9
-38
lines changed

1 file changed

+9
-38
lines changed

test/fixtures/gradle-prune-repeated-deps/build.gradle

Lines changed: 9 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,22 @@
11
apply plugin: 'java'
2-
apply plugin: 'maven'
32

43
group = 'com.github.jitpack'
54

6-
sourceCompatibility = 1.8 // java 8
7-
targetCompatibility = 1.8
5+
java {
6+
sourceCompatibility = JavaVersion.VERSION_1_8
7+
targetCompatibility = JavaVersion.VERSION_1_8
8+
}
89

910
repositories {
1011
mavenCentral()
1112
}
1213

1314
dependencies {
14-
compile 'com.google.guava:guava:18.0'
15-
compile 'batik:batik-dom:1.6'
16-
compile 'commons-discovery:commons-discovery:0.2'
17-
compile 'axis:axis:1.3'
18-
compile 'com.android.tools.build:builder:2.3.0'
19-
}
20-
21-
task sourcesJar(type: Jar, dependsOn: classes) {
22-
classifier = 'sources'
23-
from sourceSets.main.allSource
24-
}
25-
26-
task javadocJar(type: Jar, dependsOn: javadoc) {
27-
classifier = 'javadoc'
28-
from javadoc.destinationDir
29-
}
30-
31-
artifacts {
32-
archives sourcesJar
33-
archives javadocJar
34-
}
35-
36-
// To specify a license in the pom:
37-
install {
38-
repositories.mavenInstaller {
39-
pom.project {
40-
licenses {
41-
license {
42-
name 'The Apache Software License, Version 2.0'
43-
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
44-
distribution 'repo'
45-
}
46-
}
47-
}
48-
}
15+
implementation 'com.google.guava:guava:18.0'
16+
implementation 'batik:batik-dom:1.6'
17+
implementation 'commons-discovery:commons-discovery:0.2'
18+
implementation 'axis:axis:1.3'
19+
implementation 'com.android.tools.build:builder:2.3.0'
4920
}
5021

5122
// See https://docs.gradle.org/current/userguide/customizing_dependency_resolution_behavior.html#sec:dependency_resolve_rules

0 commit comments

Comments
 (0)