-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
74 lines (62 loc) · 1.49 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
wrapper {
gradleVersion = '7.6.1'
}
allprojects {
group = pGroup
version = pVersion
}
ext.libraries = [
project(':jeography-config'),
project(':jeography-core'),
project(':jeography-gis'),
project(':jeography-places'),
project(':jeography-tiles'),
project(':jeography-tools'),
project(':jeography-viewers')
]
configure(libraries) {
apply plugin: 'java-library'
apply plugin: 'maven-publish'
}
configure(project(':jeography-testing')) {
apply plugin: 'java-library'
}
configure(project(':jeography-gis-exe')) {
apply plugin: 'application'
}
subprojects {
apply plugin: 'eclipse'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
maven {
url 'https://mvn.topobyte.de'
}
maven {
url 'https://mvn.slimjars.com'
}
mavenCentral()
}
}
configure(libraries) {
if (project.hasProperty("topobyte")) {
apply from: 'file:///' + System.getProperty("user.home") \
+ '/.gradle/topobyte.gradle'
}
java {
withSourcesJar()
}
def pomInfo = new XmlSlurper().parse(new File(projectDir, 'info.pom'));
publishing {
publications {
maven(MavenPublication) {
from components.java
pom {
name = "$pomInfo.name"
description = "$pomInfo.description"
url = "$pomInfo.url"
}
}
}
}
}