-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
43 lines (36 loc) · 1012 Bytes
/
Copy pathbuild.gradle
File metadata and controls
43 lines (36 loc) · 1012 Bytes
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
plugins {
id 'dev.architectury.loom-no-remap' version "1.17-SNAPSHOT" apply false
id 'architectury-plugin' version '3.5-SNAPSHOT'
id 'com.gradleup.shadow' version '9.4.2' apply false
}
architectury {
minecraft = project.minecraft_version
}
allprojects {
group = rootProject.maven_group
version = rootProject.mod_version
}
subprojects {
apply plugin: 'dev.architectury.loom-no-remap'
apply plugin: 'architectury-plugin'
apply plugin: 'maven-publish'
base {
archivesName = "$rootProject.archives_name-$project.name"
}
java {
withSourcesJar()
sourceCompatibility = JavaVersion.VERSION_25
targetCompatibility = JavaVersion.VERSION_25
}
tasks.withType(JavaCompile).configureEach {
it.options.release = 25
}
publishing {
publications {
mavenJava(MavenPublication) {
artifactId = base.archivesName.get()
from components.java
}
}
}
}