-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
88 lines (72 loc) · 1.86 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
88
plugins {
id 'java-library'
id 'org.openjfx.javafxplugin' version '0.0.10'
id 'maven-publish'
}
group 'blue.lhf'
version '2.0.0'
repositories {
mavenCentral()
maven {
url = 'https://raw.githubusercontent.com/bluelhf/Tasks/mvn-repo/'
}
maven {
url = 'https://gitlab.com/api/v4/projects/18568066/packages/maven'
}
}
javafx {
version = '18-ea+3'
modules("javafx.controls", "javafx.fxml")
configuration = 'testCompileOnly'
}
configurations {
implementation {
transitive = false
canBeResolved = true
}
}
dependencies {
implementation 'io.github.bluelhf:Tasks:0001'
implementation 'mx.kenzie:overlord:1.0.1'
testImplementation sourceSets.main.output.filter {file -> file.exists()}
}
jar {
from {
configurations.implementation.collect { it.isDirectory() ? it : zipTree(it) }
}
}
tasks.register('testJar', Jar) {
dependsOn build
duplicatesStrategy = DuplicatesStrategy.WARN
from sourceSets.main.output
from sourceSets.test.output
archiveClassifier = 'test'
from {
configurations.implementation.collect { it.isDirectory() ? it : zipTree(it) }
}
manifest {
attributes(
"Main-Class": "blue.lhf.jfxr.test.JFXRTest"
)
}
}
publishing {
publications {
maven(MavenPublication) {
groupId = String.valueOf(group)
artifactId = project.name
version = String.valueOf(project.version)
artifact jar
}
}
repositories {
maven {
name = "bluelhf"
url = "https://maven.lhf.blue" + (project.version.endsWith("-SNAPSHOT") ? "/snapshots" : "/releases")
credentials {
username = System.getenv("BLUELHF_USER")
password = System.getenv("BLUELHF_PASS")
}
}
}
}