-
Notifications
You must be signed in to change notification settings - Fork 94
/
build.gradle
112 lines (89 loc) · 2.34 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
buildscript {
// Executed in context of buildscript
repositories {
// mavenLocal()
mavenCentral()
// jcenter()
// maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
gradlePluginPortal()
}
dependencies {
classpath 'org.anarres.gradle:gradle-stdproject-plugin:1.0.10'
}
}
apply plugin: 'org.anarres.stdproject'
stdproject {
}
subprojects {
version = '1.1.1'
apply plugin: 'org.anarres.stdmodule'
apply plugin: 'eclipse'
stdmodule {
description "Jar Jar Links is a utility that makes it easy to repackage Java libraries and embed them into your own distribution."
author id: 'shevek', name: 'Shevek', email: '[email protected]'
license 'Apache-2.0'
}
group = "org.anarres.jarjar"
dependencies {
compile 'com.google.code.findbugs:annotations:3.0.1'
compile 'org.slf4j:slf4j-api:1.7.12'
}
sourceCompatibility = 1.7
}
version = '1.1.1'
project(':jarjar-testdata') {
dependencies {
compile 'com.google.guava:guava:17.0'
}
for (int i = 0; i < 4; i++) {
String name = "jar$i";
Task t = task(name, type: Jar) {
classifier = name
from(sourceSets.main.output) {
include "**/pkg$i/**";
}
}
artifacts {
archives t
}
}
uploadArchives.enabled = false
}
project(':jarjar-core') {
dependencies {
compile 'org.ow2.asm:asm-commons:8.0.1'
compile 'org.ow2.asm:asm-util:8.0.1'
// compile 'org.ow2.asm:asm-commons:4.0'
// testCompile project(':jarjar-testdata')
}
def samplesProject = project(':jarjar-testdata')
test.dependsOn samplesProject.tasks['assemble']
test {
systemProperty "jar", samplesProject.jar.archivePath
for (int i = 0; i < 4; i++) {
systemProperty "jar$i", samplesProject."jar$i".archivePath
}
}
}
project(':jarjar-gradle') {
apply plugin: 'org.anarres.stdplugin'
stdplugin {
implementation "org.anarres.jarjar", "org.anarres.gradle.plugin.jarjar.JarjarPlugin"
}
dependencies {
compile project(':jarjar-core')
compile 'org.apache.commons:commons-compress:1.9'
compile gradleApi()
compile 'oro:oro:2.0.8'
testCompile project(':jarjar-core').sourceSets.test.output
}
}
project(':jarjar-command') {
dependencies {
compile project(':jarjar-core')
compile 'net.sf.jopt-simple:jopt-simple:4.8'
testCompile project(':jarjar-core').sourceSets.test.output
}
apply plugin: 'application'
mainClassName = "com.tonicsystems.jarjar.Main"
}