-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
100 lines (83 loc) · 2.47 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
plugins {
id 'maven-publish'
id 'signing'
}
allprojects {
apply plugin: 'scala'
apply plugin: 'java-library'
apply from: "${rootProject.rootDir}/scala.gradle"
group 'io.github.iltotore'
version '2.0-RC'
repositories {
mavenCentral()
}
dependencies {
implementation scalaLib()
}
}
Properties localProperties = new Properties()
localProperties.load(rootProject.file('local.properties').newDataInputStream())
for(Map.Entry<String, ?> entry : localProperties.entrySet()){
project.ext[entry.getKey()] = entry.getValue()
}
java {
withSourcesJar()
withJavadocJar()
}
javadocJar {
from new File(buildDir, 'docs/scaladoc')
group 'build'
dependsOn scaladoc
}
scaladoc {
source project.sourceSets.main.allScala
project.configurations.api.canBeResolved = true
scalaClasspath+=project.configurations.api
}
publishing {
publications {
mavenScala(MavenPublication) {
artifactId = 'ucp_' + getMajorVersion(scalaVersion)
repositories {
maven {
url = 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
credentials {
username = "Il_totore"
password = System.getenv("SONATYPE_PASSWORD")
}
}
}
pom {
name = 'UniversalCommandParser'
description = 'A flexible command system written in Scala'
url = 'https://github.com/Iltotore/UCP'
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id = 'iltotore'
name = 'Il_totore'
email = 'rafbodaha@gmail.com'
}
}
scm {
connection = 'scm:git:git://github.com/Iltotore/UCP.git'
developerConnection = 'scm:git:ssh://github.com/Iltotore/UCP.git'
url = 'https://github.com/Iltotore/UCP.git'
}
}
from components.java
}
}
}
tasks.withType(GenerateModuleMetadata) {
enabled = false
}
signing {
useGpgCmd()
sign publishing.publications.mavenScala
}