forked from eugene-kamenev/orientdb-groovy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
73 lines (60 loc) · 1.42 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
buildscript {
repositories {
jcenter()
}
}
plugins {
id "com.jfrog.bintray" version "1.4"
}
group 'com.github.eugene-kamenev'
version '0.1.3'
def file = new File('bintray.gradle')
if (file.exists()) {
apply from: 'bintray.gradle'
}
apply plugin: 'groovy'
apply plugin: 'idea'
apply plugin: 'maven'
apply plugin: 'maven-publish'
sourceCompatibility = 1.8
repositories {
jcenter()
mavenCentral()
mavenLocal()
}
def groovy = '2.4.5'
def orientDb = '2.2.37'
dependencies {
compile("org.codehaus.groovy:groovy-all:${groovy}")
compile("com.orientechnologies:orientdb-core:${orientDb}")
compile("com.orientechnologies:orientdb-client:${orientDb}")
compile("com.orientechnologies:orientdb-graphdb:${orientDb}")
compile group: 'asm', name: 'asm-all', version: '3.3.1'
compile "com.tinkerpop.gremlin:gremlin-groovy:2.6.0"
testCompile "org.spockframework:spock-core:1.2-groovy-2.4"
}
task sourcesJar(type: Jar) {
from project.sourceSets.main.java.srcDirs
classifier = 'sources'
}
task myJavaDoc(type: Javadoc) {
source = project.sourceSets.main.java.srcDirs
}
task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives javadocJar
archives sourcesJar
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
repositories {
mavenLocal()
}
}