-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
141 lines (118 loc) · 4.08 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
133
134
135
136
137
138
139
140
141
/**
*
* CARNIVAL ASYNC
*
*/
///////////////////////////////////////////////////////////////////////////////
// build script settings
///////////////////////////////////////////////////////////////////////////////
buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath group: 'org.yaml', name: 'snakeyaml', version: '1.23'
}
}
///////////////////////////////////////////////////////////////////////////////
// plugins
///////////////////////////////////////////////////////////////////////////////
plugins {
id 'java'
id "com.github.ManifestClasspath" version "0.1.0-RELEASE"
id 'maven-publish'
}
///////////////////////////////////////////////////////////////////////////////
// project
///////////////////////////////////////////////////////////////////////////////
group = 'edu.upenn.pmbb'
sourceCompatibility = 1.8
version = '0.3.1-SNAPSHOT' // see https://semver.org/
///////////////////////////////////////////////////////////////////////////////
// dependencies
///////////////////////////////////////////////////////////////////////////////
repositories {
mavenCentral()
jcenter()
mavenLocal()
}
configurations {
apt
}
///////////////////////////////////////////////////////////////////////////////
// maven publishing
///////////////////////////////////////////////////////////////////////////////
publishToMavenLocal.dependsOn 'compileJava'
task sourcesJar(type: Jar) {
from sourceSets.main.allJava
classifier = 'sources'
}
task javadocJar(type: Jar) {
from javadoc
classifier = 'javadoc'
}
publishing {
publications {
mavenJava(MavenPublication) {
artifactId = 'carnival-gremlin-dsl'
from components.java
artifact sourcesJar
//artifact javadocJar
pom.withXml {
asNode().children().last() + {
resolveStrategy = Closure.DELEGATE_FIRST
name 'Carnival Gremlin DSL'
description 'A concise description of Carnival Gremlin DSL'
url 'https://pennbiobank.github.io/carnival/'
licenses {
license {
name 'The Apache License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id 'hjwilli'
name 'Heather Williams'
email 'hjwilli@gmail.com'
}
developer {
id 'augustearth'
name 'David Birtwell'
email 'augustearth@gmail.com'
}
}
scm {
connection 'scm:git:git://github.com:pennbiobank/carnival.git'
developerConnection 'scm:git:ssh://github.com:pennbiobank/carnival.git'
url 'https://github.com/pennbiobank/carnival'
}
}
}
}
}
repositories {
maven {
// change URLs to point to your repos, e.g. http://my.org/repo
def releasesRepoUrl = "$buildDir/repos/releases"
def snapshotsRepoUrl = "$buildDir/repos/snapshots"
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
}
}
}
// In this section you declare the dependencies for your production and test code
dependencies {
// Tinkerpop
implementation 'org.apache.tinkerpop:gremlin-core:3.4.3'
implementation 'org.apache.tinkerpop:gremlin-groovy:3.4.3'
implementation 'org.apache.tinkerpop:tinkergraph-gremlin:3.4.3'
// apt
apt 'org.apache.tinkerpop:gremlin-core:3.4.3'
// Neo4J
implementation 'org.apache.tinkerpop:neo4j-gremlin:3.4.3'
implementation 'org.neo4j:neo4j-tinkerpop-api-impl:0.9-3.4.0'
}
compileJava {
options.annotationProcessorPath = configurations.apt
}