This repository has been archived by the owner on Nov 3, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
87 lines (72 loc) · 2.03 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
plugins {
id 'idea'
id 'eclipse'
id 'com.github.hierynomus.license' version '0.16.1'
id 'java-library'
id 'maven-publish'
}
group 'io.github.nucleuspowered'
def artifactName = "neutrino"
version '1.1.7-SNAPSHOT'
repositories {
mavenCentral()
maven {
name 'Sponge maven repo'
url 'https://repo.spongepowered.org/maven'
}
}
dependencies {
api "org.spongepowered:configurate-core:3.7.1"
implementation group: 'com.google.code.findbugs', name: 'jsr305', version: '3.0.0'
testImplementation group: 'junit', name: 'junit', version: '4.11'
testImplementation "org.mockito:mockito-all:1.10.19"
}
defaultTasks 'licenseFormat build'
license {
ext.name = "Neutrino"
exclude "**/*.info"
exclude "assets/**"
exclude "*.properties"
exclude "*.txt"
header file('HEADER.txt')
sourceSets = project.sourceSets
ignoreFailures false
strictCheck true
mapping {
java = 'SLASHSTAR_STYLE'
}
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
groupId = group
artifactId = artifactName
version = version
}
}
repositories {
def githubToken = System.getenv("GITHUB_TOKEN")
if (githubToken != null) {
maven {
name = "GitHubPackages"
url = project.uri(project.property("ghUri") + project.property("ghSlug"))
credentials {
username = System.getenv("GITHUB_ACTOR")
password = githubToken
}
}
}
def artifactoryToken = System.getenv("ARTIFACTORY_TOKEN")
if (artifactoryToken != null) {
maven {
name = "Artifactory"
url = project.uri(System.getenv("ARTIFACTORY_URL"))
credentials {
username = System.getenv("ARTIFACTORY_USER")
password = artifactoryToken
}
}
}
}
}