-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.gradle
117 lines (100 loc) · 3.05 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
buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath 'org.junit.platform:junit-platform-gradle-plugin:1.0.0'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
}
}
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'idea'
apply plugin: 'org.junit.platform.gradle.plugin'
apply plugin: 'com.jfrog.bintray'
apply plugin: 'maven-publish'
group = 'toneg0d'
version = '3.0.2'
sourceCompatibility = 1.7
targetCompatibility = 1.7
compileTestJava {
sourceCompatibility = 1.10
targetCompatibility = 1.10
options.compilerArgs += '-parameters'
}
ext.jmeVersion = "3.2.0-stable"
ext.junitPlatformVersion = "1.0.0"
ext.junitJupiterVersion = "5.0.0"
ext.log4jVersion = '2.6.2'
ext.bintrayVersion = version
junitPlatform {
filters {
engines {
}
tags {
}
}
logManager "org.apache.logging.log4j.jul.LogManager"
}
repositories {
mavenCentral()
jcenter()
maven { url "https://jitpack.io" }
}
publishing {
publications {
EmitterArtifact(MavenPublication) {
from components.java
groupId group
artifactId 'emitter'
version bintrayVersion
artifact sourcesJar
artifact javadocJar
}
}
}
bintray {
user = System.getProperty('bintrayUser')
key = System.getProperty('bintrayKey')
publications = ['EmitterArtifact']
pkg {
repo = 'maven'
name = 'tonegod.emitter'
licenses = ['Apache-2.0']
websiteUrl = 'https://github.com/JavaSaBr/tonegodemitter'
vcsUrl = 'https://github.com/JavaSaBr/tonegodemitter.git'
issueTrackerUrl = 'https://github.com/JavaSaBr/tonegodemitter/issues'
githubRepo = 'JavaSaBr/tonegodemitter'
githubReleaseNotesFile = 'README.md'
version {
name = bintrayVersion
desc = bintrayVersion
released = new Date()
}
}
}
dependencies {
compile group: 'org.jetbrains', name: 'annotations', version: '15.0'
compile "org.jmonkeyengine:jme3-core:$jmeVersion"
testCompile "org.junit.platform:junit-platform-commons:$junitPlatformVersion"
testRuntime "org.junit.platform:junit-platform-engine:$junitPlatformVersion"
testRuntime "org.jmonkeyengine:jme3-lwjgl:$jmeVersion"
testCompile "org.junit.jupiter:junit-jupiter-api:$junitJupiterVersion"
testRuntime "org.junit.jupiter:junit-jupiter-engine:$junitJupiterVersion"
testRuntime "org.apache.logging.log4j:log4j-core:$log4jVersion"
testRuntime "org.apache.logging.log4j:log4j-jul:$log4jVersion"
// Only needed to run tests in an (IntelliJ) IDE(A) that bundles an older version
testCompile "org.junit.platform:junit-platform-launcher:$junitPlatformVersion"
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
task wrapper(type: Wrapper) {
gradleVersion = '4.7'
}