-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.gradle
101 lines (75 loc) · 2.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
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
import java.text.SimpleDateFormat
buildscript {
ext.commonProps = new Properties()
file(new File(projectDir.parentFile,"config/common.properties")).withInputStream { commonProps.load(it) }
repositories {
mavenCentral()
mavenLocal()
}
dependencies {
classpath "eu.mihosoft.vmf:vmf-gradle-plugin:${commonProps.get("publication.version")}"
}
}
plugins {
id 'com.github.hierynomus.license' version '0.16.1'
// id 'eu.mihosoft.vmf' version '0.2-SNAPSHOT'
}
ext.vmfPluginIntelliJIntegration = true
apply plugin: 'java'
apply plugin: 'eu.mihosoft.vmf'
idea {
module {
dependencies {
implementation group: 'eu.mihosoft.vmf', name: 'vmf', version: commonProps.get("publication.version")
}
sourceDirs += file('src/main/java')
}
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
options.encoding = 'UTF-8'
}
if (!hasProperty('mainClass')) {
ext.mainClass = 'eu.mihosoft.vmf.tutorial01.Main'
}
wrapper {
gradleVersion = '8.7'
}
repositories {
mavenCentral()
mavenLocal()
}
dependencies {
testImplementation('junit:junit:4.13.2'){
exclude group: 'org.hamcrest'
}
testImplementation 'org.hamcrest:hamcrest-library:1.3'
testImplementation group: 'eu.mihosoft.vmf', name: 'vmf', version: commonProps.get("publication.version")
implementation group: 'eu.mihosoft.vmf', name: 'vmf-runtime', version: commonProps.get("publication.version")
implementation group: 'eu.mihosoft.jcompiler', name: 'jcompiler', version: '0.4'
implementation group: 'org.codehaus.groovy', name: 'groovy-console', version: '2.4.21'
implementation 'commons-jxpath:commons-jxpath:1.3'
}
license {
header = rootProject.file('config/HEADER')
strictCheck = true
ignoreFailures = true
mapping {
java = 'SLASHSTAR_STYLE'
groovy = 'SLASHSTAR_STYLE'
fxml = 'XML_STYLE'
}
ext.yearCurrent = new SimpleDateFormat("yyyy").format(new Date())
ext.yearSince1 = '2017'
ext.author1 = 'Michael Hoffer <[email protected]>'
ext.yearSince2 = '2017'
ext.author2= 'Goethe Center for Scientific Computing, University Frankfurt'
ext.yearSince3 = '2017'
ext.author3 = 'Samuel Michaelis'
exclude '**/*.svg'
}