-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
50 lines (42 loc) · 1.13 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
plugins {
// Apply the java-library plugin to add support for Java Library
id 'java-library'
id 'maven-publish'
}
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
archivesBaseName = 'TemplateMakerFabric'
version = '0.4.1'
group = 'com.extracraftx.minecraft'
repositories {
// Use jcenter for resolving dependencies.
jcenter()
}
dependencies {
implementation 'org.freemarker:freemarker:2.3.29'
implementation 'com.google.code.gson:gson:2.8.6'
// Use JUnit test framework
testImplementation 'junit:junit:4.12'
}
task sourceJar(type: Jar) {
from sourceSets.main.allJava
archiveClassifier = "sources"
}
publishing{
publications{
mavenJava(MavenPublication){
from components.java
artifact sourceJar
}
}
repositories{
mavenLocal()
maven{
url = System.getenv().getOrDefault('extracraftxMaven', "NO_MAVEN")
credentials {
username = System.getenv().getOrDefault('extracraftxMavenUsername', "NO_USERNAME")
password = System.getenv().getOrDefault('extracraftxMavenPassword', "NO_PASSWORD")
}
}
}
}