-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
111 lines (102 loc) · 3.39 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
plugins {
id 'java'
id 'maven-publish'
id 'com.jfrog.artifactory' version '4.21.0'
}
group = 'tum-gis'
version = '0.1.6'
description = 'A change detection tool for CityGML datasets using the graph database Neo4j.'
java {
sourceCompatibility = JavaVersion.VERSION_1_8
//withJavadocJar()
withSourcesJar()
}
repositories {
maven {
url "https://repo.maven.apache.org/maven2"
artifactUrls "https://repo.osgeo.org/repository/release"
}
maven {
url "https://raw.github.com/neo4j-contrib/m2/master/releases"
}
maven {
url "https://raw.github.com/neo4j-contrib/m2/master/snapshots"
}
maven {
url "https://repo.osgeo.org/repository/release"
}
}
dependencies {
implementation 'org.citygml4j:citygml4j:2.4.4'
implementation 'org.neo4j.driver:neo4j-java-driver:1.2.1'
implementation 'org.neo4j:neo4j:3.2.5'
implementation 'org.apache.httpcomponents:httpclient:4.5.2'
implementation 'com.graphaware.neo4j:tx-executor:3.1.0.44'
implementation 'org.neo4j:neo4j-spatial:0.24.1-neo4j-3.2.5'
implementation "javax.xml.bind:jaxb-api:2.3.0"
implementation "javax.activation:activation:1.1"
implementation "com.sun.xml.bind:jaxb-impl:2.3.0"
implementation "com.sun.xml.bind:jaxb-core:2.3.0"
implementation "com.sun.xml.ws:rt:2.3.0"
implementation "com.sun.xml.ws:jaxws-rt:2.3.0"
testImplementation 'junit:junit:4.12'
}
// https://github.com/gradle/gradle/issues/15538
//tasks.withType( JavaCompile ).configureEach {
// options.forkOptions.jvmArgs.addAll( ['--add-opens', 'jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED'] )
//}
javadoc {
options.addStringOption('Xdoclint:none', '-quiet')
}
jar {
manifest {
attributes('Implementation-Title': project.name,
'Implementation-Version': project.version
)
}
into('META-INF') {
from 'LICENSE'
}
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
pom {
name = project.name
description = project.description
url = 'https://github.com/tum-gis'
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'https://www.apache.org/licenses/LICENSE-2.0.txt'
distribution = 'repo'
}
}
developers {
developer {
id = 'son-hnguyen'
name = 'Son H. Nguyen'
email = 'son.nguyen@tum.de'
roles = ['developer']
timezone = '+1'
}
}
}
}
}
}
artifactory {
contextUrl = project.hasProperty('artifactory_contextUrl') ? project.property('artifactory_contextUrl') : System.getenv('artifactory_contextUrl')
publish {
repository {
repoKey = 'maven'
username = project.hasProperty('artifactory_user') ? project.property('artifactory_user') : System.getenv('artifactory_user')
password = project.hasProperty('artifactory_password') ? project.property('artifactory_password') : System.getenv('artifactory_password')
maven = true
}
defaults {
publications('mavenJava')
}
}
}