-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
96 lines (80 loc) · 2.75 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
plugins {
id "com.github.johnrengelman.shadow" version "7.1.2"
id 'io.freefair.aggregate-javadoc' version '6.6.1'
}
subprojects {
apply plugin: 'idea'
apply plugin: 'signing'
apply plugin: 'java-library'
apply plugin: 'maven-publish'
apply plugin: "com.github.johnrengelman.shadow"
version = '1.3.4'
group = 'io.github.nullptr'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(8)
}
withSourcesJar()
withJavadocJar()
}
compileJava {
sourceCompatibility = JavaVersion.VERSION_1_8
options.encoding = 'UTF-8'
}
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:all')
options.encoding = 'UTF-8'
}
shadowJar {
minimize()
}
repositories {
mavenCentral()
}
publishing {
publications {
mavenJava(MavenPublication) { publication ->
from components.java
pom {
groupId = project.group
version = project.version
artifactId = "tools" + (!(project.name == "tools") ? "-" + project.name.toLowerCase() : "")
name = project.name
description = '🛠️ A complete, modular and flexible toolset for all your Java ☕ projects'
url = 'https://github.com/boul2gom/nullptr-tools'
developers {
developer {
id = 'nullptr-rs'
name = 'nullptr-rs'
email = 'nullptr.rs@gmail.com'
}
}
licenses {
license {
name = 'GNU General Public License v3.0'
url = 'https://www.gnu.org/licenses/gpl-3.0.txt'
}
}
scm {
connection = 'scm:git:github.com/nullptr-rs/nullptr-tools.git'
developerConnection = 'scm:git:ssh://github.com/nullptr-rs/nullptr-tools.git'
url = 'https://github.com/nullptr-rs/nullptr-tools/tree/master'
}
}
}
}
repositories {
maven {
url = "https://maven.pkg.github.com/boul2gom/nullptr-tools"
credentials {
username System.getenv('GITHUB_USERNAME')
password System.getenv('GITHUB_TOKEN')
}
}
}
}
signing {
useInMemoryPgpKeys(System.getenv("GPG_PRIVATE_KEY"), System.getenv("GPG_PASSPHRASE"))
sign publishing.publications.mavenJava
}
}