-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
74 lines (63 loc) · 2.2 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
apply plugin: 'base'
apply plugin: 'maven-publish'
version = '1.0.1'
group = 'io.github.cruciblemc'
publishing {
publications {
create("maven", MavenPublication) {
artifactId = 'omniconfig'
pom {
name.set('Omniconfig')
description.set('Version-independent mod configuration API')
url.set('https://github.com/CrucibleMC/Omniconfig')
licenses {
license {
name.set('Lesser GNU Public License, Version 2.1')
url.set('https://www.gnu.org/licenses/lgpl-2.1.html')
}
}
scm {
url.set("https://github.com/CrucibleMC/Omniconfig")
connection.set("scm:git:git://github.com/CrucibleMC/Omniconfig.git")
developerConnection.set("scm:git:[email protected]:CrucibleMC/Omniconfig.git")
}
}
}
}
repositories {
maven {
url = buildDir.absolutePath + "/repo"
name = "filesystem"
}
}
}
var buildTimestamp = new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
subprojects {
group = rootProject.group
version = rootProject.version
repositories {
mavenCentral()
}
afterEvaluate {
dependencies {
compileOnly 'org.jetbrains:annotations:20.1.0'
}
jar {
manifest {
attributes([
"Specification-Title" : rootProject.name,
"Specification-Vendor" : "CrucibleMC Team",
"Specification-Version" : "1",
"Implementation-Title" : rootProject.name + '-' + project.name,
"Implementation-Version" : project.version,
"Implementation-Vendor" : "CrucibleMC Team",
"Implementation-Timestamp" : buildTimestamp,
])
}
}
// TODO: Better way of doing this????
configurations.archives.allArtifacts.forEach {
rootProject.extensions.publishing.publications.maven.artifact it
}
}
}