This repository has been archived by the owner on Oct 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
65 lines (54 loc) · 1.55 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
plugins {
id 'architectury-plugin' version "$architectury_plugin_version"
id 'dev.architectury.loom' version "$loom_version" apply false
id 'com.github.johnrengelman.shadow' version "$shadow_version"
id 'java'
}
archivesBaseName = 'toolbox'
architectury {
minecraft = rootProject.minecraft_version
}
subprojects {
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'dev.architectury.loom'
apply plugin: 'architectury-plugin'
apply plugin: 'maven-publish'
version "${mod_version}+${minecraft_version}"
group maven_group
archivesBaseName = rootProject.archivesBaseName + '-' + name
loom.silentMojangMappingsLicense()
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
withSourcesJar()
}
repositories {
maven {
name 'Lazurite'
url 'https://lazurite.dev/releases'
}
}
dependencies {
minecraft "com.mojang:minecraft:$minecraft_version"
mappings loom.officialMojangMappings()
}
publishing {
repositories {
maven {
name 'Lazurite'
url 'https://lazurite.dev/releases'
credentials(PasswordCredentials)
authentication {
register("basic", BasicAuthentication)
}
}
}
publications {
"${project.name}"(MavenPublication) {
artifactId = archivesBaseName
from components.java
}
}
}
}