-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
58 lines (48 loc) · 1.08 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
wrapper {
gradleVersion = '5.2.1'
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'maven'
group = pGroup
version = pVersion
if (project.hasProperty("topobyte")) {
apply from: 'file:///' + System.getProperty("user.home") \
+ '/.gradle/topobyte.gradle'
}
repositories {
maven {
url 'http://mvn.topobyte.de'
}
maven {
url 'http://mvn.slimjars.com'
}
mavenCentral()
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
dependencies {
compile 'de.topobyte:jsi:1.2.0'
compile 'de.topobyte:jsi-and-jts:0.3.0'
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives sourcesJar
}
def pomInfo = new XmlSlurper().parse(new File('info.pom'));
afterEvaluate { project ->
uploadArchives {
repositories {
mavenDeployer {
pom.project {
name pomInfo.name
description pomInfo.description
url pomInfo.url
}
}
}
}
}