-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
56 lines (49 loc) · 1.19 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
plugins {
id "java"
id "net.minecrell.licenser" version "0.4.1"
id "maven-publish"
}
group "dev.architectury"
archivesBaseName = rootProject.name
version = "1.0." + (System.getenv("GITHUB_RUN_NUMBER") == null ? "9999" : System.getenv("GITHUB_RUN_NUMBER"))
sourceCompatibility = targetCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
compileOnly "org.jetbrains:annotations:20.1.0"
}
license {
include "**/*.java"
header = project.file("HEADER.txt")
ext {
name = "architectury"
year = "2021"
}
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourcesJar
}
}
repositories {
if (System.getenv("MAVEN_PASS") != null) {
maven {
url = "https://deploy.shedaniel.me/"
credentials {
username = "shedaniel"
password = System.getenv("MAVEN_PASS")
}
}
}
}
}