-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
77 lines (66 loc) · 1.43 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
plugins {
id 'java'
id 'maven-publish'
id 'com.github.johnrengelman.shadow' version '7.0.0'
id 'edu.sc.seis.launch4j' version '2.5.0'
}
group 'com.github.LabyStudio'
version '2.5.5'
compileJava {
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
}
repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.code.gson:gson:2.8.6'
}
sourceSets {
main {
java {
srcDir 'src/core/java'
srcDir 'src/demo/java'
}
resources {
srcDir 'src/core/resources'
srcDir 'src/demo/resources'
}
}
}
launch4j {
mainClassName = 'Start'
icon = "${projectDir}/icons/icon.ico"
outfile = 'DesktopModules.exe'
copyConfigurable = []
jarTask = project.tasks.shadowJar
}
jar {
manifest {
attributes 'Main-Class': 'Start'
}
}
java {
withSourcesJar()
withJavadocJar()
}
build {
dependsOn shadowJar
}
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/LabyStudio/DesktopModules")
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("USERNAME")
password = project.findProperty("gpr.key") ?: System.getenv("TOKEN")
}
}
}
publications {
gpr(MavenPublication) {
from(components.java)
}
}
}