-
Notifications
You must be signed in to change notification settings - Fork 19
/
build.gradle
61 lines (49 loc) · 1.31 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
plugins {
id 'java'
id 'idea'
id 'signing'
id 'maven-publish'
id 'nebula.javadoc-jar' version '18.1.0'
id 'nebula.source-jar' version '18.1.0'
id 'com.github.johnrengelman.shadow' version '7.1.0'
id 'nebula.dependency-lock' version "12.1.5"
}
apply plugin: 'nebula.dependency-lock'
wrapper {
gradleVersion = '7.3'
}
apply from: "$rootDir/gradle/libs.gradle"
allprojects {
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'signing'
apply plugin: 'maven-publish'
apply plugin: 'nebula.javadoc-jar'
apply plugin: 'nebula.source-jar'
apply plugin: 'nebula.dependency-lock'
idea {
module {
downloadSources = true
downloadJavadoc = true
}
}
publishing {
repositories {
maven {
def stagingRepoUrl = 'https://oss.sonatype.org/service/local/staging/deploy/maven2'
def snapshotsRepoUrl = 'https://oss.sonatype.org/content/repositories/snapshots/'
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : stagingRepoUrl
ext.sonatypeUsername = project.properties.ossrhUsername
ext.sonatypePassword = project.properties.ossrhPassword
credentials {
username sonatypeUsername
password sonatypePassword
}
}
}
}
}