-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
132 lines (109 loc) · 3.27 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
plugins {
id 'com.jfrog.bintray' version '1.2'
}
apply plugin: 'groovy'
apply plugin: 'maven-publish'
apply plugin: 'maven'
group = 'com.bertramlabs.plugins'
version = '0.6.3'
ext.isReleaseVersion = !version.endsWith("SNAPSHOT")
sourceCompatibility = '1.7'
targetCompatibility = '1.7'
repositories {
mavenLocal()
jcenter()
mavenCentral()
}
configurations {
provided
}
sourceSets {
main {
compileClasspath += configurations.provided
resources{
}
}
}
dependencies {
testCompile 'org.codehaus.groovy:groovy-all:2.4.19'
// compile "com.bertramlabs.plugins:asset-pipeline-core:2.0.13"
// compile 'log4j:log4j:1.2.17'
compile 'org.jruby:jruby-complete:9.2.11.1'
testCompile 'org.spockframework:spock-core:1.3-groovy-2.4'
}
test {
// set heap size for the test JVM(s)
// minHeapSize = "1024m"
// maxHeapSize = "1024m"
// set JVM arguments for the test JVM(s)
// jvmArgs ' -Xcompile.invokedynamic=true'
}
publishing {
publications {
maven(MavenPublication) {
artifactId 'jruby-container'
pom.withXml {
asNode().children().last() + {
resolveStrategy = Closure.DELEGATE_FIRST
name 'jruby-container'
description 'Provides an isolated Jruby Execution Container that can fetch gems to run from rubygems in an isolated folder.'
url 'https://github.com/bertramdev/jruby-container'
scm {
url 'https://github.com/bertramdev/jruby-container'
connection 'scm:https://[email protected]/bertramdev/jruby-container.git'
developerConnection 'scm:git://github.com/bertramdev/jruby-container.git'
}
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/license/LICENSE-2.0.txt'
distribution 'repo'
}
}
developers {
developer {
id 'davydotcom'
name 'David Estes'
email '[email protected]'
}
}
}
}
from components.java
artifact sourcesJar
artifact javadocJar
}
}
}
bintray {
if(project.hasProperty('bintrayUser')) {
user = bintrayUser
key = bintrayKey
}
publications = ['maven']
pkg {
repo = 'jruby'
userOrg = 'bertramlabs'
name = 'jruby-container'
licenses = ['Apache-2.0']
}
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from 'build/docs/javadoc'
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
task(console, dependsOn: 'classes', type: JavaExec) {
main = 'groovy.ui.Console'
classpath = sourceSets.main.runtimeClasspath
}
test {
testLogging {
exceptionFormat = 'full'
showStandardStreams = true
}
}
bintrayUpload.dependsOn build, sourcesJar, javadocJar