-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
112 lines (95 loc) · 2.48 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
buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
}
}
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'idea'
apply plugin: 'com.jfrog.bintray'
apply plugin: 'maven-publish'
group = 'com.spaceshift'
version = '5.1.0'
sourceCompatibility = 1.10
targetCompatibility = 1.10
compileTestJava {
sourceCompatibility = 1.10
targetCompatibility = 1.10
options.compilerArgs += '-parameters'
}
ext.junitJupiterVersion = "5.2.0"
ext.log4jVersion = '2.6.2'
ext.bintrayVersion = version
repositories {
mavenCentral()
mavenLocal()
maven {
url 'https://jitpack.io'
}
maven {
url "https://dl.bintray.com/javasabr/maven"
}
}
publishing {
publications {
RlibFXArtifact(MavenPublication) {
from components.java
groupId group
artifactId 'rlib.fx'
version bintrayVersion
artifact sourcesJar
artifact javadocJar
}
}
}
bintray {
user = System.getProperty('bintrayUser')
key = System.getProperty('bintrayKey')
publications = ['RlibFXArtifact']
pkg {
repo = 'maven'
name = 'com.spaceshift.rlib.fx'
licenses = ['Apache-2.0']
websiteUrl = 'https://github.com/JavaSaBr/RlibFX'
vcsUrl = 'https://github.com/JavaSaBr/RlibFX.git'
issueTrackerUrl = 'https://github.com/JavaSaBr/RlibFX/issues'
githubRepo = 'JavaSaBr/RlibFX'
githubReleaseNotesFile = 'README.md'
version {
name = bintrayVersion
desc = bintrayVersion
released = new Date()
}
}
}
dependencies {
compile 'com.spaceshift:rlib.common:7.3.0'
compile group: 'org.jetbrains', name: 'annotations', version: '15.0'
testCompile group: 'org.jetbrains', name: 'annotations', version: '15.0'
testCompile "org.junit.jupiter:junit-jupiter-api:$junitJupiterVersion"
testRuntime "org.junit.jupiter:junit-jupiter-engine:$junitJupiterVersion"
}
test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
}
reports {
html.enabled = true
}
}
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.9'
}