-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
80 lines (72 loc) · 2.02 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
plugins {
id 'java'
id 'maven-publish'
}
group 'org.citydb'
version '3.0.3'
description 'Dynamic SQL builder for the 3D City Database'
ext {
date = new Date()
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
withJavadocJar()
withSourcesJar()
}
tasks.named('compileJava') {
options.javaModuleVersion = provider { project.version }
}
repositories {
mavenCentral()
}
javadoc {
options {
title = "$project.name $project.version"
header = title
overview "resources/javadoc/overview.html"
bottom = file("resources/javadoc/bottom.html").text.replaceAll("@date@", "${date.format('yyyy')}")
addStringOption('doctitle', project.name + ' - ' + project.version)
addStringOption('Xdoclint:none', '-quiet')
}
}
jar {
manifest {
attributes('Implementation-Title': project.name,
'Implementation-Version': project.version
)
}
into('META-INF') {
from 'LICENSE'
}
}
publishing {
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)
}
}
}
publications {
mavenJava(MavenPublication) {
from components.java
pom {
name = project.name
description = project.description
url = 'https://github.com/3dcitydb'
scm {
url = 'https://github.com/3dcitydb/sqlbuilder'
connection = 'scm:git:https://github.com/3dcitydb/sqlbuilder.git'
}
}
}
}
}