This repository was archived by the owner on Apr 19, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
81 lines (67 loc) · 1.78 KB
/
build.gradle
File metadata and controls
81 lines (67 loc) · 1.78 KB
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
plugins {
id "com.jfrog.bintray" version "1.4"
}
apply plugin: 'java'
apply plugin: 'maven-publish'
group = 'org.squiddev'
version = '1.0.9'
sourceCompatibility = 1.6
repositories {
mavenCentral()
}
dependencies {
compile group: 'org.ow2.asm', name: 'asm-debug-all', version: '5.+'
compile group: 'org.luaj', name: 'luaj-jse', version: '2.+'
testCompile group: 'junit', name: 'junit', version: '4.+'
// Used for original LuaJC
testCompile 'org.apache.bcel:bcel:5.2'
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
bintray {
user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_USER')
key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('BINTRAY_API_KEY')
publications = ['mavenJava']
pkg {
repo = 'maven'
name = 'luaj.luajc'
licenses = ['MIT']
vcsUrl = 'https://github.com/SquidDev/luaj.luajc'
version {
name = project.version
desc = 'LuaJ\'s LuaJC ported to the ASM framework'
released = new Date()
}
}
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourcesJar { classifier "sources" }
artifact javadocJar { classifier "javadoc" }
}
}
}
test {
testLogging {
events "passed", "skipped", "failed", "standardOut", "standardError"
}
}
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
}
task executeProfile(type: JavaExec) {
main = "org.squiddev.luaj.luajc.PerformanceRunner"
args = ["--prompt", "--luac"]
classpath = sourceSets.test.runtimeClasspath
standardInput = System.in
}