-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
115 lines (99 loc) · 2.53 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
/*
* This build file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Java Library project to get you started.
* For more details take a look at the Java Libraries chapter in the Gradle
* user guide available at https://docs.gradle.org/3.5/userguide/java_library_plugin.html
*/
plugins {
id "com.jfrog.bintray" version "1.8.0"
}
// Apply the java-library plugin to add support for Java Library
apply plugin: 'java-library'
apply plugin: 'maven'
apply plugin: 'maven-publish'
def any23ver = '0.12'
group = 'com.github.frankier.any23jena'
version = any23ver
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
// In this section you declare where to find the dependencies of your project
repositories {
// Use jcenter for resolving your dependencies.
// You can declare any Maven/Ivy/file repository here.
jcenter()
}
dependencies {
compile group: 'org.apache.jena', name: 'jena', version: '3.6.0', ext: 'pom'
compile group: 'org.apache.jena', name: 'jena-arq', version: '3.6.0'
compile group: 'org.apache.any23', name: 'apache-any23-core', version: '2.1'
testCompile 'junit:junit:4.12'
compile 'org.hamcrest:hamcrest-all:1.3'
}
/*sourceSets {
test {
java {
srcDirs = ["src/test/java"]
}
}
}*/
def pomConfig = {
licenses {
license {
name "The Apache Software License, Version 2.0"
url "http://www.apache.org/licenses/LICENSE-2.0.txt"
distribution "repo"
}
}
developers {
developer {
id "frankier"
name "Frankie Robertson"
email "frankie@robertson.name"
}
}
scm {
url "https://github.com/frankier/any23jena"
}
}
publishing {
publications {
Any23(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
groupId 'com.github.frankier.any23jena'
artifactId 'any23jena'
version any23ver
pom.withXml {
def root = asNode()
root.appendNode('description', 'Bridge to load triples using Any23 into a Jena Model/Graph')
root.appendNode('name', 'any23jena')
root.appendNode('url', 'https://github.com/frankier/any23jena')
root.children().last() + pomConfig
}
}
}
}
bintray {
user = bintray_user
key = bintray_key
pkg {
repo = 'maven'
name = 'any23jena'
userOrg = bintray_user
licenses = ['Apache-2.0']
vcsUrl = 'https://github.com/frankier/any23jena.git'
version {
name = any23ver
}
}
configurations = ['archives']
publications = ['Any23']
}