-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
62 lines (53 loc) · 1.64 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
plugins {
id 'idea'
id 'maven-publish'
id "com.github.ethankhall.semantic-versioning" version "1.1.0"
id "com.github.hierynomus.license" version "0.12.1"
}
project.version.with {
major = textIoMultitermVersionMajor as int
minor= textIoMultitermVersionMinor as int
patch = textIoMultitermVersionPatch as int
if (project.hasProperty('textIoMultitermVersionLabel')) {
preRelease = textIoMultitermVersionLabel
}
releaseBuild = Boolean.valueOf(textIoMultitermReleaseBuild)
}
ext.textIoMultitermVersion = project.version as String
repositories {
jcenter()
mavenCentral()
}
apply plugin: 'application'
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'com.github.hierynomus.license'
sourceCompatibility = 1.8
group = 'org.beryx'
version = textIoMultitermVersion
def defaultEncoding = 'UTF-8'
[compileJava, compileTestJava]*.options*.encoding = defaultEncoding
license {
header rootProject.file("license-header.txt")
skipExistingHeaders true
ignoreFailures false
}
dependencies {
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.21'
compile 'org.beryx:text-io:3.1.0'
runtime ('ch.qos.logback:logback-classic:1.1.7')
testCompile 'junit:junit:4.12'
testCompile('ch.qos.logback:logback-classic:1.1.7')
}
jar {
manifest {
attributes 'Implementation-Title': "text-io-multiterm",
'Main-Class': 'org.beryx.textio.multiterm.MultiTerm',
'Implementation-Version': textIoMultitermVersion
}
}
mainClassName = 'org.beryx.textio.multiterm.MultiTerm'
startScripts {
defaultJvmOpts = ['-Dlogback.configurationFile=logback.xml']
}