-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
118 lines (109 loc) · 3.28 KB
/
build.gradle
File metadata and controls
118 lines (109 loc) · 3.28 KB
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
plugins {
id 'java-library'
id 'net.nemerosa.versioning' version '3.0.0'
}
apply plugin: 'maven-publish'
group = 'org.kettingpowered'
repositories {
maven {
name 'c0d3m4513r'
url 'https://reposilite.c0d3m4513r.com/Forge'
}
maven {
name 'MinecraftForge'
url 'https://maven.minecraftforge.net/'
}
}
dependencies {
api 'net.fabricmc:mapping-io:0.6.1'
api 'org.slf4j:slf4j-api:1.8.0-beta4'
implementation 'org.spongepowered:mixin:0.8.5'
implementation 'org.jetbrains:annotations:24.0.0'
implementation 'it.unimi.dsi:fastutil:8.5.12'
//ASM
implementation 'org.ow2.asm:asm:9.7'
implementation 'org.ow2.asm:asm-tree:9.7'
implementation 'org.ow2.asm:asm-util:9.7'
implementation 'org.ow2.asm:asm-commons:9.7'
implementation 'org.ow2.asm:asm-analysis:9.7'
}
jar {
manifest {
attributes 'Specification-Title': 'Kettingpowered',
'Specification-Vendor': 'Kettingpowered',
'Implementation-Title': 'KettingCore',
'Implementation-Version': System.getenv("VERSION") ?: 'dev-ver',
'Implementation-Vendor': 'Kettingpowered'
}
}
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) {
classifier "sources"
extension "jar"
}
artifact(javadocJar) {
classifier "javadoc"
extension "jar"
}
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"
}
}
scm {
connection = "scm:git:https://github.com/kettingpowered/KettingCore.git"
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://reposilite.c0d3m4513r.com/Ketting/"
}
maven {
name = 'kettingRepo-backup'
credentials {
username = System.getenv("KETTINGUSERNAME")
password = System.getenv("KETTINGPASSWORD")
}
url = "https://repo.kettingpowered.org/Ketting/"
}
}
}