-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle
92 lines (79 loc) · 2.44 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
buildscript {
ext.kotlin_version = "1.7.10"
}
plugins {
id 'java-library'
id 'signing'
id 'maven-publish'
id "org.jetbrains.kotlin.jvm" version "$kotlin_version"
id('io.github.gradle-nexus.publish-plugin') version '1.1.0'
}
group 'info.macias'
version '0.9.1'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
testImplementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
testImplementation "org.jetbrains.kotlin:kotlin-test:$kotlin_version"
testImplementation group: 'junit', name: 'junit', version: '4.13.2'
}
java {
withJavadocJar()
withSourcesJar()
}
// Required by uploadArchives
group = "info.macias"
archivesBaseName = "kaconf"
version = "0.9.1"
/* To upload files into sonatype:
export GNUPGHOME=/your/sonatype/.gnupg
./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository
*/
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
pom {
name = 'KickAss Configuration system'
packaging = 'jar'
// optionally artifactId can be defined here
description = 'An annotation-based configuration system for Java and Kotlin'
url = 'https://github.com/mariomac/kaconf'
scm {
connection = 'scm:git:[email protected]:mariomac/kaconf.git'
developerConnection = 'scm:git:[email protected]:mariomac/kaconf.git'
url = '[email protected]:mariomac/kaconf.git'
}
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution = 'repo'
}
}
developers {
developer {
id = 'mariomac'
name = 'Mario Macias'
email = '[email protected]'
url = 'http://www.macias.info'
}
}
}
}
}
}
signing {
sign publishing.publications.mavenJava
}
nexusPublishing {
repositories {
sonatype{
//assigning from the 'gradle.properties' files
username=project.property("ossrhUsername")
password=project.property("ossrhPassword")
}
}
}