-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
114 lines (102 loc) · 3.37 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
112
113
114
plugins {
id 'java-library'
id 'maven-publish'
id 'com.github.johnrengelman.shadow' version '7.1.0'
}
group = 'org.kettingpowered'
version = System.getenv("VERSION") ?: 'dev-ver'
repositories {
mavenCentral()
}
configurations {
configureEach {
resolutionStrategy {
force "org.fusesource.jansi:jansi:$JANSI_VERSION"
}
}
pack { transitive = false }
}
dependencies {
pack libs.bundles.jline.packed
pack libs.bundles.terminal.colors
}
shadowJar {
configurations = [project.configurations.pack]
archiveBaseName.set('terminal-colors')
archiveClassifier.set('')
archiveExtension.set('jar')
manifest {
attributes 'Specification-Title': 'Kettingpowered',
'Specification-Vendor': 'Kettingpowered',
'Implementation-Title': 'terminal-colors',
'Implementation-Version': version,
'Implementation-Vendor': 'Kettingpowered'
}
mergeServiceFiles()
}
task sourcesJar(type: Jar, dependsOn: classes) {
archiveClassifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
archiveClassifier = 'javadoc'
from javadoc.destinationDir
}
publishing {
publications {
myPublication(MavenPublication) {
from components.java
artifact(sourcesJar) {
// These values will be used instead of the values from the task. The task values will not be updated.
classifier "sources"
extension "jar"
}
artifact(javadocJar) {
//These values will be used instead of the values from the task. The task values will not be updated.
classifier "javadoc"
extension "jar"
}
pom {
name = "terminal-colors"
description = "An API supported across all Ketting Versions"
url = "https://github.com/kettingpowered/terminal-colors"
licenses {
license {
name = "MIT License"
url = "http://www.opensource.org/licenses/mit-license.php"
}
}
developers {
developer {
id = "justred23"
name = "JustRed23"
//email = "jon@doe"
}
}
scm {
connection = "scm:git:https://github.com/kettingpowered/terminal-colors.git"
//developerConnection = "scm:svn:https://subversion.example.com/svn/project/trunk/"
url = "https://github.com/kettingpowered/terminal-colors"
}
}
}
}
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/kettingpowered/terminal-colors")
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
maven {
name = 'kettingRepo'
credentials {
username = System.getenv("KETTINGUSERNAME")
password = System.getenv("KETTINGPASSWORD")
}
url = "https://nexus.c0d3m4513r.com/repository/Ketting/"
}
}
}