This repository has been archived by the owner on May 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
155 lines (134 loc) · 4.45 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
System.setProperty("file.encoding", "UTF-8")
buildscript {
repositories {
mavenCentral()
gradlePluginPortal()
maven {
url "https://sandec.jfrog.io/artifactory/repo"
}
}
dependencies {
classpath "one.jpro:jpro-gradle-plugin:$JPRO_VERSION"
classpath "SANDEC:simplefx-plugin-gradle:$SIMPLEFX_VERSION"
classpath "org.openjfx:javafx-plugin:$JAVAFX_PLUGIN_VERSION"
}
}
configure([project(':core'),project(':example'), project(':dev'), project(':core-test')]) {
repositories {
mavenCentral()
maven {
url "https://sandec.jfrog.io/artifactory/repo"
}
}
apply plugin: 'de.sandec.simplefx'
apply plugin: 'org.openjfx.javafxplugin'
targetCompatibility = "11"
sourceCompatibility = "11"
compileScala {
targetCompatibility = "1.8"
}
javafx {
version = "$JAVAFX_VERSION"
configurations = ["compileOnly", "testImplementation"]
modules = [ 'javafx.base', 'javafx.graphics', 'javafx.controls', 'javafx.swing', 'javafx.fxml', 'javafx.media', 'javafx.web' ]
}
test {
useJUnitPlatform()
testLogging.showStandardStreams = true
testLogging.exceptionFormat TestExceptionFormat.FULL
testLogging.showExceptions true
testLogging.showCauses true
testLogging.showStackTraces true
}
}
configure([project(':core'), project(':dev'), project(':popup')]) {
apply plugin: 'java-library'
apply plugin: 'maven-publish'
dependencies {
api "com.sandec.jpro:jpro-webapi:$JPRO_VERSION"
api "SANDEC:jnodes:$JNODES_VERSION"
api "de.sandec:JMemoryBuddy:$JMEMORYBUDDY_VERSION"
api "org.scala-lang:scala-library:2.12.10"
testImplementation "org.junit.jupiter:junit-jupiter-api:$JUNIT_VERSION"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$JUNIT_VERSION"
}
group = 'one.jpro'
version = "$JPRO_ROUTING_VERSION"
java {
withSourcesJar() // this also works for scala, nice!
//withJavadocJar() // let's skip this for now, because it's unclear how this interacts with scala
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
groupId project.group
artifactId ("jpro-routing-" + project.name)
version project.version
//artifact sourcesJar
}
}
repositories {
maven {
name = "artifactory"
url = "https://sandec.jfrog.io/artifactory/repo"
credentials {
username System.getenv("SANDEC_ARTIFACTORY_USERNAME")
password System.getenv("SANDEC_ARTIFACTORY_PASSWORD")
}
}
}
}
}
configure([project(':core')]) {
dependencies {
api "SANDEC:simplefx_2.12:$SIMPLEFX_VERSION"
}
}
configure([project(':dev')]) {
dependencies {
implementation project(':core')
api "org.kordamp.ikonli:ikonli-javafx:$IKONLI_VERSION"
api "org.kordamp.ikonli:ikonli-evaicons-pack:$IKONLI_VERSION"
api "org.kordamp.ikonli:ikonli-ionicons4-pack:$IKONLI_VERSION"
implementation "fr.brouillard.oss:cssfx:$CSSFX_VERSION"
implementation 'org.scenic-view:scenic-view:11.0.3-SNAPSHOT-FORK'
}
}
configure([project(':core-test')]) {
dependencies {
implementation project(':core')
testImplementation "org.junit.jupiter:junit-jupiter-api:$JUNIT_VERSION"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$JUNIT_VERSION"
}
}
configure([project(':example')]) {
apply plugin: 'jpro-gradle-plugin'
// mainClassName = "example.scala.TestWebApplication"
// mainClassName = "example.scala.TestExtensions"
// mainClassName = "example.scala.ColorTransitionApp"
// mainClassName = "example.colors.ColorsApp"
// mainClassName = "example.popup.PopupApp"
mainClassName = "example.login.LoginApp"
application.mainModule = "one.jpro.routing.example"
dependencies {
implementation project(":auth")
implementation project(':core')
implementation project(':popup')
implementation project(':dev')
implementation "com.sandec:mdfx:$MDFX_VERSION"
implementation "org.controlsfx:controlsfx:$CONTROLSFX_VERSION"
implementation "fr.brouillard.oss:cssfx:$CSSFX_VERSION"
implementation "io.github.mkpaz:atlantafx-base:$ATLANTAFX_VERSION"
runtimeOnly "ch.qos.logback:logback-classic:$LOGBACK_VERSION"
}
javafx {
version = "$JAVAFX_VERSION"
configurations = ["implementation"]
modules = [ 'javafx.graphics', 'javafx.controls','javafx.swing', 'javafx.fxml', 'javafx.media', 'javafx.web' ]
}
jpro {
openingPath = "/"
}
}