-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
49 lines (40 loc) · 1.35 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
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.8.0'
}
}
apply plugin: 'java'
apply plugin: "com.vanniktech.maven.publish"
group 'com.github.mchernyakov'
version '0.0.4-SNAPSHOT'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
compile group: 'it.unimi.dsi', name: 'fastutil', version: '8.3.0'
compile group: 'org.jetbrains', name: 'annotations', version: '18.0.0'
compile group: 'ch.qos.logback', name: 'logback-classic', version: '1.2.3'
compile group: 'com.google.guava', name: 'guava-annotations', version: 'r03'
testCompile group: 'org.junit.vintage', name: 'junit-vintage-engine', version: '5.5.2'
testCompile group: 'org.awaitility', name: 'awaitility', version: '4.0.1'
}
tasks.register("release") {
// ./gradlew release uploadArchives
mavenPublish {
targets {
uploadArchives {
releaseRepositoryUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
snapshotRepositoryUrl = "https://oss.sonatype.org/content/repositories/snapshots/"
repositoryUsername = nexusUsername
repositoryPassword = nexusPassword
signing = true
}
}
}
}