-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
69 lines (67 loc) · 2.28 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
allprojects {
repositories {
mavenLocal()
mavenCentral()
}
}
subprojects {
project.group = 'io.github.ligasgr.blocks'
project.version = '0.14'
plugins.withType(JavaPlugin) {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
java {
withJavadocJar()
withSourcesJar()
}
}
plugins.withType(MavenPublishPlugin) {
publishing {
publications {
maven(MavenPublication) {
groupId project.group
artifactId project.name
version project.version
from components.java
pom {
name = project.group + ':' + project.name
description = 'Blocks Framework - ' + project.name
url = 'https://github.com/ligasgr/blocks'
licenses {
license {
name = 'Unlicense'
url = 'https://unlicense.org/'
}
}
developers {
developer {
id = 'ligasgr'
name = 'Grzegorz Ligas'
email = '[email protected]'
}
}
scm {
connection = 'scm:git:git://github.com/ligasgr/blocks.git'
developerConnection = 'scm:git:ssh://github.com:ligasgr/blocks.git'
url = 'https://github.com/ligasgr/blocks'
}
}
}
}
repositories {
maven {
url = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
credentials {
username ossrhUsername
password ossrhPassword
}
}
}
}
plugins.withType(SigningPlugin) {
signing {
sign publishing.publications.maven
}
}
}
}