-
Notifications
You must be signed in to change notification settings - Fork 20
/
build.gradle
96 lines (84 loc) · 2.88 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
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
apply plugin: 'maven-publish'
apply plugin: 'signing'
repositories {
mavenCentral()
maven { url "https://kotlin.bintray.com/kotlinx" }
}
/** Source & target compatibility is Java 11. */
sourceCompatibility = 11
targetCompatibility = 11
compileKotlin {
compilerOptions.jvmTarget = JvmTarget.JVM_11
}
compileTestKotlin {
compilerOptions.jvmTarget = JvmTarget.JVM_11
}
java {
withJavadocJar()
withSourcesJar()
}
configurations {
clientLibrary {
canBeConsumed = true
canBeResolved = false
}
}
publishing {
publications {
mavenJava(MavenPublication) {
groupId = 'org.vitrivr'
artifactId = 'cottontaildb-core'
version = System.getenv().getOrDefault("MAVEN_PUBLICATION_VERSION", version.toString())
pom {
name = 'Cottontail DB Core Library'
description = 'The Cottontail DB core library, which is a collection of classes that are used by different Cottontail DB components.'
url = 'https://github.com/vitrivr/cottontaildb/'
licenses {
license {
name = 'MIT License'
}
}
developers {
developer {
id = 'ppanopticon'
name = 'Ralph Gasser'
email = 'ralph.gasser@unibas.ch'
}
}
scm {
connection = 'scm:git:https://github.com/vitrivr/cottontaildb.git'
url = 'https://github.com/vitrivr/cottontaildb'
}
}
from components.java
}
}
repositories {
maven {
def releasesRepoUrl = 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
def snapshotsRepoUrl = 'https://oss.sonatype.org/content/repositories/snapshots/'
name = "OSSRH"
url = (publishing.publications.mavenJava.version.endsWith('SNAPSHOT')) ? snapshotsRepoUrl : releasesRepoUrl
credentials {
username = System.getenv("MAVEN_USERNAME")
password = System.getenv("MAVEN_PASSWORD")
}
}
}
}
signing {
def signingKey = findProperty("signingKey")
def signingPassword = findProperty("signingPassword")
useInMemoryPgpKeys(signingKey, signingPassword)
sign publishing.publications.mavenJava
}
dependencies {
/* The Cottontail DB client library. */
api project(':cottontaildb-client')
/* FastUtil. */
api group: 'it.unimi.dsi', name: 'fastutil', version: version_fastutil
/* Apache Commons 3.6 */
api group: 'org.apache.commons', name: 'commons-math3', version: version_commons_math3
api group: 'org.apache.commons', name: 'commons-lang3', version: version_commons_lang3
}