forked from miho/MonacoFX
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
65 lines (50 loc) · 1.46 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
import java.text.SimpleDateFormat
plugins {
id 'java'
id 'org.openjfx.javafxplugin' version '0.0.13'
id 'com.github.hierynomus.license' version '0.15.0'
id 'maven-publish'
id 'com.jfrog.bintray' version '1.8.4'
}
apply from: 'gradle/publishing.gradle'
wrapper {
gradleVersion = '7.5.1'
}
sourceCompatibility = '11'
targetCompatibility = '11'
[compileJava, compileTestJava]*.options*.release = 11
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
repositories {
jcenter()
}
dependencies {
testImplementation 'junit:junit:4.13', 'org.mockito:mockito-core:2.1.0'
}
jar {
manifest {
attributes('Automatic-Module-Name': 'eu.mihosoft.monacofx')
}
// // add velocity legacy to jar file
// from {
// configurations.legacyVelocity.collect { it.isDirectory() ? it : zipTree(it) }
// }
}
javafx {
modules = [ 'javafx.controls', 'javafx.web']
}
license {
header = rootProject.file('config/HEADER')
strictCheck = true
ignoreFailures = false
mapping {
java = 'SLASHSTAR_STYLE'
groovy = 'SLASHSTAR_STYLE'
gradle = 'SLASHSTAR_STYLE'
fxml = 'XML_STYLE'
html = 'XML_STYLE'
}
ext.yearCurrent = new SimpleDateFormat("yyyy").format(new Date())
ext.years = ('2020'.equals(ext.yearCurrent)?'':'2020-')+ext.yearCurrent
ext.author1 = 'Michael Hoffer <[email protected]>'
includes(['**/*.java', '**/monaco-editor-*/index.html'])
}