File tree Expand file tree Collapse file tree 1 file changed +9
-38
lines changed
test/fixtures/gradle-prune-repeated-deps Expand file tree Collapse file tree 1 file changed +9
-38
lines changed Original file line number Diff line number Diff line change 1
1
apply plugin : ' java'
2
- apply plugin : ' maven'
3
2
4
3
group = ' com.github.jitpack'
5
4
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
+ }
8
9
9
10
repositories {
10
11
mavenCentral()
11
12
}
12
13
13
14
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'
49
20
}
50
21
51
22
// See https://docs.gradle.org/current/userguide/customizing_dependency_resolution_behavior.html#sec:dependency_resolve_rules
You can’t perform that action at this time.
0 commit comments