-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
201 lines (160 loc) · 6.41 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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
/*
* This file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Java Library project to get you started.
* For more details take a look at the Java Libraries chapter in the Gradle
* User Manual available at https://docs.gradle.org/6.3-rc-3/userguide/java_library_plugin.html
*/
buildscript {
repositories {
jcenter()
gradlePluginPortal()
maven {
url "https://sandec.bintray.com/repo"
}
}
dependencies {
classpath 'com.sandec.jpro:jpro-plugin-gradle:2019.2.6'
classpath 'org.openjfx:javafx-plugin:0.0.9'
}
}
plugins {
id 'eclipse'
id 'idea'
// id 'war'
id 'application'
id 'java-library'
id 'org.openjfx.javafxplugin' version '0.0.9'
// id "org.javamodularity.moduleplugin" version "1.6.0"
//id 'org.beryx.jlink' version '2.21.0'
id 'org.beryx.runtime' version '1.11.4'
id 'project-report'
id 'net.nemerosa.versioning' version '2.6.1'
id "dev.jacomet.logging-capabilities" version "0.9.0"
}
apply plugin: 'com.sandec.jpro'
java {
// sourceCompatibility = JavaVersion.VERSION_14
//targetCompatibility = JavaVersion.VERSION_14
//modularity.inferModulePath = true
}
javafx {
version = "14"
modules = [ 'javafx.base', 'javafx.graphics', 'javafx.controls', 'javafx.fxml', 'javafx.media', 'javafx.web' ]
}
repositories {
// Use jcenter for resolving dependencies.
// You can declare any Maven/Ivy/file repository here.
google()
mavenCentral()
jcenter()
}
String javaFxVersion = '14'
String mod = 'linux'
dependencies {
// https://mvnrepository.com/artifact/org.hsqldb/hsqldb
//compile group: 'org.hsqldb', name: 'hsqldb', version: '2.5.1'
// https://mvnrepository.com/artifact/org.apache.derby/derby
compile group: 'org.apache.derby', name: 'derby', version: '10.14.2.0'
compile "fr.brouillard.oss:cssfx:11.4.0"
/*
implementation group: 'org.openjfx', name: 'javafx-base', version: javaFxVersion, classifier: mod
implementation group: 'org.openjfx', name: 'javafx-swing', version: javaFxVersion, classifier: mod
implementation group: 'org.openjfx', name: 'javafx-controls', version: javaFxVersion, classifier: mod
implementation group: 'org.openjfx', name: 'javafx-fxml', version: javaFxVersion, classifier: mod
implementation group: 'org.openjfx', name: 'javafx-graphics', version: javaFxVersion, classifier: mod
implementation group: 'org.openjfx', name: 'javafx-media', version: javaFxVersion, classifier: mod
implementation group: 'org.openjfx', name: 'javafx-web', version: javaFxVersion, classifier: mod
*/
// https://mvnrepository.com/artifact/org.eclipse.persistence/org.eclipse.persistence.jpa
implementation group: 'org.eclipse.persistence', name: 'org.eclipse.persistence.jpa', version: '3.0.0-M1'
// https://mvnrepository.com/artifact/jakarta.activation/jakarta.activation-api
implementation group: 'jakarta.activation', name: 'jakarta.activation-api', version: '2.0.0-RC3'
// https://mvnrepository.com/artifact/org.eclipse.persistence/org.eclipse.persistence.jpa.modelgen.processor
annotationProcessor group: 'org.eclipse.persistence', name: 'org.eclipse.persistence.jpa.modelgen.processor', version: '3.0.0-M1'
// https://mvnrepository.com/artifact/jakarta.transaction/jakarta.transaction-api
compile group: 'jakarta.transaction', name: 'jakarta.transaction-api', version: '2.0.0-RC2'
compileOnly 'org.projectlombok:lombok:1.18.12'
annotationProcessor 'org.projectlombok:lombok:1.18.12'
testCompileOnly 'org.projectlombok:lombok:1.18.12'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.12'
// https://mvnrepository.com/artifact/org.apache.commons/commons-csv
implementation group: 'org.apache.commons', name: 'commons-csv', version: '1.8'
// https://mvnrepository.com/artifact/org.jboss.weld.se/weld-se-core
compile group: 'org.jboss.weld.se', name: 'weld-se-core', version: '4.0.0.Alpha3'
// Use JUnit test framework
testImplementation('org.junit.jupiter:junit-jupiter:5.6.0')
// https://mvnrepository.com/artifact/org.kordamp.ikonli/ikonli-javafx
implementation group: 'org.kordamp.ikonli', name: 'ikonli-javafx', version: '11.3.5'
// https://mvnrepository.com/artifact/org.kordamp.ikonli/ikonli-fontawesome5-pack
implementation group: 'org.kordamp.ikonli', name: 'ikonli-fontawesome5-pack', version: '11.3.5'
}
ext {
metamodelPath="$buildDir/generated/sources/metamodel/main/java"
persistenceXMLLocation="src/main/resources/META-INF/persistence.xml"
}
compileJava {
doFirst {
file(metamodelPath).delete()
file(metamodelPath).mkdirs()
}
options.compilerArgs += ["-Aeclipselink.persistencexml=${new File(project.projectDir, persistenceXMLLocation).absolutePath}", '-s', metamodelPath]
}
mainClassName = 'ir.hosseinmp76.workFlowPlanner.ui.Fuck'
jpro {
// for debugging
// JVMArgs << '-agentlib:jdwp=transport=dt_socket,server=n,address=5006,suspend=y'
JVMArgs << '-Xmx1000m'
//jpro server port
port = 8080
}
run {
jvmArgs '-Xdebug', '-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=*:5005'
jvmArgs '-cp', 'src/main/resources'
standardInput = System.in
}
jar {
manifest {
attributes(
'Main-Class': 'ir.hosseinmp76.workFlowPlanner.ui.Fuck',
'Built-By' : System.properties['user.name'],
'Build-Timestamp': new java.text.SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ").format(new Date()),
'Build-Revision' : versioning.info.commit,
'Created-By' : "Gradle ${gradle.gradleVersion}",
'Build-Jdk' : "${System.properties['java.version']} (${System.properties['java.vendor']} ${System.properties['java.vm.version']})",
'Build-OS' : "${System.properties['os.name']} ${System.properties['os.arch']} ${System.properties['os.version']}"
)
}
}
task copyResources(type: Copy) {
from "${projectDir}/src/main/resources"
into "${buildDir}/classes/java/main"
}
processResources.dependsOn copyResources
task copyResources2(type: Copy) {
from "${projectDir}/src/main/resources"
into "${projectDir}/bin/java/main"
}
processResources.dependsOn copyResources2
eclipse {
classpath {
downloadSources = true
downloadJavadoc = true
}
}
/*
sourceSets {
// main.java.srcDir
main {
java {
// srcDirs metamodelPath
resources {
srcDir("src/main/resources")
*/
//include("**/*.*")
/*
}
// include '$buildDir/generated/sources/metamodel/main/java/*'
}
}
}*/