forked from McJtyMods/TheOneProbe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
100 lines (88 loc) · 2.44 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
plugins {
id 'eclipse'
id 'idea'
id 'maven-publish'
id "com.modrinth.minotaur" version "2.+"
id "com.matthewprenger.cursegradle" version "1.4.0"
id 'net.neoforged.gradle.userdev' version '7.0.163'
}
if (project.file('../gradletools.gradle').exists()) {
apply from: '../gradletools.gradle'
} else {
apply from: 'https://raw.githubusercontent.com/McJtyMods/MultiWorkspace/1.21_neo/gradletools.gradle'
}
group= "mcjty.theoneprobe" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
base.archivesName = "theoneprobe"
java.toolchain.languageVersion = JavaLanguageVersion.of(21)
if (System.getenv('BUILD_NUMBER') != null) {
version += "-${System.getenv('BUILD_NUMBER')}"
}
repos()
at()
runs()
jars()
sourceSets.main.resources {
srcDir 'src/generated/resources'
}
dependencies {
mc()
jei()
}
cfdeps([], [], [])
modrinth([], [], [])
subsystems {
parchment {
minecraftVersion = "${parchment_minecraft_version}"
mappingsVersion = "${parchment_version}"
}
}
task apiJar(type: Jar) {
archiveClassifier = "api"
from(sourceSets.main.output) {
include "mcjty/theoneprobe/api/**"
}
}
artifacts {
archives apiJar
}
publishing {
publications.create('mavenJava', MavenPublication) {
from components.java
artifact apiJar
artifactId = project.archivesBaseName
pom {
name = 'RFToolsBase'
description = 'Base mod for all McJty tech mods'
scm {
url = 'https://github.com/McJtyMods/RFToolsBase'
connection = 'scm:git:git@github.com:McJtyMods/RFToolsBase.git'
developerConnection = 'scm:git:git@github.com:McJtyMods/RFToolsBase.git'
}
issueManagement {
system = 'github'
url = 'https://github.com/McJtyMods/RFToolsBase/issues'
}
licenses {
license {
name = 'MIT'
distribution = 'repo'
}
}
developers {
developer {
id = 'McJty'
name = 'McJty'
roles = ['developer']
}
}
}
}
repositories {
if (System.getenv('local_maven') != null) {
maven {
name = 'local'
url = 'file://' + System.getenv('local_maven')
}
}
}
}