-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.gradle
44 lines (40 loc) · 1.11 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
plugins {
id 'idea'
id 'java'
id 'maven-publish'
id 'org.spongepowered.gradle.vanilla' version '0.2.1-SNAPSHOT'
}
base {
archivesName = "${mod_name}-common-${minecraft_version}"
}
minecraft {
version(minecraft_version)
if (file("src/main/resources/${mod_id}.accesswidener").exists()) {
accessWideners(file("src/main/resources/${mod_id}.accesswidener"))
}
}
dependencies {
compileOnly group: 'org.spongepowered', name: 'mixin', version: '0.8.5'
implementation group: 'com.google.code.findbugs', name: 'jsr305', version: '3.0.1'
}
publishing {
publications {
mavenJava(MavenPublication) {
groupId project.group
artifactId base.archivesName.get()
version project.version
from components.java
}
}
repositories {
if (System.getenv().SAP_SECRET) {
maven {
url "https://maven.saps.dev/releases"
credentials {
username = "mrbysco"
password = "${System.getenv().SAP_SECRET}"
}
}
}
}
}