-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
93 lines (79 loc) · 1.94 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
plugins {
id 'idea'
id 'java-library'
id 'maven-publish'
id 'com.jfrog.bintray' version "1.8.4"
}
group = "com.rvandoosselaer"
version = "1.0.0-SNAPSHOT"
ext {
jmeVersion = "[3.3,)"
sio2Version = "[1.3,)"
zayESVersion = "[1.3,)"
slf4jVersion = "[1.8,)"
lombokVersion = "[1.18,)"
minieVersion = "[1.5.0for33,)"
}
repositories {
jcenter()
}
dependencies {
// JME
implementation "org.jmonkeyengine:jme3-core:${jmeVersion}"
// physics
implementation "com.github.stephengold:Minie:${minieVersion}"
// utilities
compileOnly "org.projectlombok:lombok:${lombokVersion}"
annotationProcessor "org.projectlombok:lombok:${lombokVersion}"
implementation "com.simsilica:zay-es:${zayESVersion}"
implementation "com.simsilica:sio2:${sio2Version}"
// logging
implementation "org.slf4j:slf4j-api:${slf4jVersion}"
}
// copy the generated javadocs into the /docs folder for the github pages
task copyJavadoc(dependsOn: javadoc) {
doLast {
copy {
from "$buildDir/docs"
into "$projectDir/docs"
}
}
}
build {
dependsOn copyJavadoc
}
task sourcesJar(type: Jar) {
from sourceSets.main.allJava
archiveClassifier = 'sources'
}
task javadocJar(type: Jar) {
from javadoc
archiveClassifier = 'javadoc'
}
publishing {
publications {
MyPublication(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
}
}
}
javadoc {
failOnError = false
}
bintray {
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_APIKEY')
publications = ['MyPublication']
pkg {
repo = 'rvandoosselaer'
name = rootProject.getName()
licenses = ['BSD 3-Clause']
vcsUrl = 'https://github.com/rvandoosselaer/Jme-es-physics.git'
version {
name = '1.0.0-SNAPSHOT'
released = new Date()
}
}
}