-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.gradle
More file actions
69 lines (59 loc) · 2.22 KB
/
build.gradle
File metadata and controls
69 lines (59 loc) · 2.22 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
plugins {
id 'fabric-loom' version "$loom_version" apply false
id "com.github.johnrengelman.shadow" version "7.0.0" apply false
id 'maven-publish'
}
version = project.mod_version
group = project.maven_group
subprojects {
apply plugin: 'java-library'
apply plugin: 'maven-publish'
apply plugin: 'java'
java.toolchain.languageVersion = JavaLanguageVersion.of(project.java_version)
java.withSourcesJar()
java.withJavadocJar()
tasks.withType(JavaCompile).configureEach {
it.options.encoding = 'UTF-8'
it.options.release = project.java_version as int
}
repositories {
mavenCentral()
maven {
name = 'Sponge'
url = 'https://repo.spongepowered.org/repository/maven-public/'
}
}
manifest {
attributes([
"Specification-Title" : project.mod_id,
"Specification-Vendor": project.mod_authors,
"Specification-Version" : "1", // We are version 1 of ourselves
"Implementation-Title" : project.name,
"Implementation-Version" : project.version,
"Implementation-Vendor": project.mod_authors,
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
])
}
}
configure(subprojects - project(":beehive-tooltips-common")) {
publishing {
// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
repositories {
maven {
url "file:///${rootProject.projectDir}/mcmodsrepo"
}
// Add repositories to publish to here.
// Notice: This block does NOT have the same function as the block in the top level.
// The repositories here will be used for publishing your artifact, not for
// retrieving dependencies.
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/EDToaster/beehive-tooltips")
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
}
}