-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
executable file
·64 lines (50 loc) · 1.31 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
subprojects {
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'maven'
group = 'net.tribe7.jgl'
version = '0.02'
sourceCompatibility = 1.6
ext {
osName = System.getProperty("os.name").toLowerCase()
osArch = System.getProperty("os.arch").toLowerCase()
isWindows = osName.contains("windows")
isLinux = osName.contains("linux")
is32bit = osArch.contains("86")
is64bit = osArch.contains("64")
unsupportedOs = "Unsupported OS :("
}
repositories {
mavenCentral()
maven { url "https://raw.github.com/jjzazuet/mvn-repo/master/repo" }
}
configurations { provided }
jar { manifest.attributes provider: 'tribe7.net' }
sourceSets {
main.compileClasspath += configurations.provided
test.compileClasspath += configurations.provided
test.runtimeClasspath += configurations.provided
}
dependencies {
testCompile 'junit:junit:4.8.2'
compile 'net.tribe7.seeds:seeds-base:15.0'
}
eclipse {
classpath {
plusConfigurations += configurations.provided
noExportConfigurations += configurations.provided
}
}
task sourcesJar(type: Jar, dependsOn:classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn:javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
}