-
-
Notifications
You must be signed in to change notification settings - Fork 31
/
build.gradle
152 lines (132 loc) · 5.14 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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
plugins {
id "architectury-plugin" version "3.4+"
id "dev.architectury.loom" version "1.4.+" apply false
id "org.sonarqube" version "4.0.+"
id "com.teamresourceful.resourcefulgradle"
}
architectury {
minecraft = mc_version
}
subprojects {
apply plugin: "dev.architectury.loom"
loom {
silentMojangMappingsLicense()
}
dependencies {
minecraft "com.mojang:minecraft:$mc_version"
mappings loom.officialMojangMappings()
modApi "earth.terrarium:botarium-$name-1.20:$botarium_version"
}
}
sonar {
properties {
property "sonar.projectKey", "Resourceful-Bees_ResourcefulBees"
property "sonar.organization", "resourceful-bees"
property "sonar.host.url", "https://sonarcloud.io"
}
}
allprojects {
apply plugin: "java"
apply plugin: "architectury-plugin"
apply plugin: "maven-publish"
archivesBaseName = archives_base_name
version = libs.versions.mod.version.get() //resourcefulGradle.modVersion.getModVersion(project)
group = maven_group
repositories {
maven { url = "https://nexus.resourcefulbees.com/repository/maven-public/" }
mavenCentral()
maven { url = "https://www.cursemaven.com" }
mavenLocal()
maven { url = "https://jitpack.io" }
maven { url = 'https://api.modrinth.com/maven/' }
maven { url = 'https://maven.ladysnake.org/releases' }
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
options.release = 17
}
java {
withSourcesJar()
}
publishing {
if (project != rootProject) {
publications {
maven(MavenPublication) {
artifactId = "$archives_base_name-$project.name-$mc_version"
from components.java
pom {
name = 'Resourceful Bees'
description = 'A mod for minecraft to add own bees to minecraft through a powerful api.'
url = 'https://github.com/Team-Resourceful/ResourcefulBees'
scm {
connection = 'git:https://github.com/Team-Resourceful/ResourcefulBees.git'
developerConnection = 'git:https://github.com/Team-Resourceful/ResourcefulBees.git'
url = 'https://github.com/Team-Resourceful/ResourcefulBees/'
}
licenses {
license {
name = 'GNU Lesser General Public License v3.0'
url = 'https://www.gnu.org/licenses/lgpl-3.0.txt'
}
}
developers {
developer {
id = 'epic428'
name = 'Epic_Oreo'
email = '[email protected]'
}
developer {
id = 'thatgravyboat'
name = 'ThatGravyBoat'
email = '[email protected]'
}
developer {
id = 'dawn_felstar'
name = 'Dawn Felstar'
email = '[email protected]'
}
}
}
}
}
}
// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
repositories {
maven {
url = nightly.toBoolean()
? "https://nexus.resourcefulbees.com/repository/maven-nightly/"
: "https://nexus.resourcefulbees.com/repository/maven-releases/"
credentials {
def ENV = System.getenv()
username ENV.MAVEN_USER
password ENV.MAVEN_PASS
}
}
}
}
}
resourcefulGradle {
templates {
readme {
source = file("dev_resources/project_templates/README.md.template")
injectedValues = [
"version" : libs.versions.mod.version.get(),
"mc_version" : mc_version,
"phos_version" : phos_version,
"gecko_forge" : geckolib_forge,
"gecko_forge_version": geckolib_version,
"rlib_version" : rlib_version,
"rconfig_version" : rconfig_version
]
}
discordEmbed {
injectedValues = [
"version" : libs.versions.mod.version.get(),
"mc_version" : mc_version,
"forge_version": forge_version
]
def template = nightly.toBoolean() ? "nightly_embed.json.template" : "release_embed.json.template"
source = file("dev_resources/project_templates/$template")
}
}
}