-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
121 lines (108 loc) · 3.4 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
115
116
117
118
119
120
121
plugins {
id 'java-library'
id 'net.nemerosa.versioning' version '3.0.0'
}
apply plugin: 'maven-publish'
group = 'org.kettingpowered'
allprojects {
apply plugin: 'java-library'
apply plugin: 'net.nemerosa.versioning'
repositories {
maven {
name 'c0d3m4513r'
url 'https://nexus.c0d3m4513r.com/repository/Magma/'
}
maven {
name 'MinecraftForge'
url 'https://maven.minecraftforge.net/'
}
}
dependencies {
implementation 'org.jetbrains:annotations:24.0.0'
}
}
dependencies {
api 'org.slf4j:slf4j-api:1.8.0-beta4'
implementation 'org.spongepowered:mixin:0.8.5'
}
jar {
//archiveFileName = 'KettingCore.jar'
manifest {
attributes 'Specification-Title': 'Kettingpowered',
'Specification-Vendor': 'Kettingpowered',
'Implementation-Title': 'KettingCore',
'Implementation-Version': System.getenv("VERSION") ?: 'dev-ver',
'Implementation-Vendor': 'Kettingpowered'
}
from subprojects.collect { it.sourceSets.main.output }
}
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"
}
// artifact jar
// groupId = "org.kettingpowered"
// artifactId = "kettingcore"
version = System.getenv("VERSION")
pom {
name = "KettingCore"
description = "An API supported across all Ketting Versions"
url = "https://github.com/kettingpowered/KettingCore"
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/KettingCore.git"
//developerConnection = "scm:svn:https://subversion.example.com/svn/project/trunk/"
url = "https://github.com/kettingpowered/KettingCore"
}
}
}
}
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/kettingpowered/KettingCore")
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/"
}
}
}