-
Notifications
You must be signed in to change notification settings - Fork 69
/
Copy pathbuild.gradle
107 lines (94 loc) · 2.79 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
buildscript {
repositories {
maven { url = 'https://maven.minecraftforge.net/' }
maven { url = 'https://maven.parchmentmc.org' }
maven { url = 'https://plugins.gradle.org/m2/' }
mavenCentral()
gradlePluginPortal()
}
dependencies {
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.1.+', changing: true
classpath 'org.parchmentmc:librarian:1.+'
classpath 'gradle.plugin.com.matthewprenger:CurseGradle:1.4.0'
}
}
plugins { id "com.modrinth.minotaur" version "2.+" }
apply plugin: 'net.minecraftforge.gradle'
apply plugin: 'org.parchmentmc.librarian.forgegradle'
apply plugin: 'eclipse'
apply plugin: 'com.matthewprenger.cursegradle'
apply plugin: 'maven-publish'
if (project.file('../gradletools.gradle').exists()) {
apply from: '../gradletools.gradle'
} else {
apply from: 'https://raw.githubusercontent.com/McJtyMods/MultiWorkspace/1.20_tech/gradletools.gradle'
}
group = "com.github.mcjty"
archivesBaseName = "lostcities"
java.toolchain.languageVersion = JavaLanguageVersion.of(17)
if (System.getenv('BUILD_NUMBER') != null) {
version += "-${System.getenv('BUILD_NUMBER')}"
}
repos()
runs('lostcities')
jars('lostcities')
sourceSets.main.resources {
srcDir 'src/generated/resources'
}
dependencies {
mc()
jei()
top()
}
cfdeps(['the-one-probe'], [], [])
modrinth(['the-one-probe'], [], [])
task apiJar(type: Jar) {
classifier = "api"
from(sourceSets.main.output) {
include "mcjty/lostcities/api/**"
}
}
artifacts {
archives apiJar
}
publishing {
publications.create('mavenJava', MavenPublication) {
from components.java
artifact apiJar
artifactId = project.archivesBaseName
pom {
name = 'LostCities'
description = 'Lost Cities'
scm {
url = 'https://github.com/McJtyMods/LostCities'
connection = 'scm:git:[email protected]:McJtyMods/LostCities.git'
developerConnection = 'scm:git:[email protected]:McJtyMods/LostCities.git'
}
issueManagement {
system = 'github'
url = 'https://github.com/McJtyMods/LostCities/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')
}
}
}
}