-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
89 lines (81 loc) · 2.35 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
plugins {
id 'java-library'
id 'maven-publish'
}
group 'org.citydb'
version '1.2.0'
description 'citygml4j ADE module for the 3D City Database'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(11)
}
withJavadocJar()
withSourcesJar()
}
repositories {
mavenCentral()
}
sourceSets {
main.java.srcDir 'src-gen/main/java'
}
dependencies {
api 'org.citygml4j:citygml4j:2.13.0'
}
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/3dcitydb'
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'https://www.apache.org/licenses/LICENSE-2.0.txt'
distribution = 'repo'
}
}
developers {
developer {
id = 'clausnagel'
name = 'Claus Nagel'
email = '[email protected]'
roles = ['architect', 'developer']
timezone = '+1'
}
}
scm {
url = 'https://github.com/3dcitydb/3dcitydb-ade-citygml4j'
connection = 'scm:git:https://github.com/3dcitydb/3dcitydb-ade-citygml4j.git'
}
}
}
}
repositories {
maven {
url project.hasProperty('gitLab_maven_url') ? project.property('gitLab_maven_url') : System.getenv('GITLAB_MAVEN_URL')
name 'gitlab-maven'
credentials(HttpHeaderCredentials) {
name = 'Private-Token'
value = project.hasProperty('gitLab_private_token') ? project.property('gitLab_private_token') : System.getenv('GITLAB_PRIVATE_TOKEN')
}
authentication {
header(HttpHeaderAuthentication)
}
}
}
}