-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
111 lines (101 loc) · 2.88 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
101
102
103
104
105
106
107
108
109
110
111
apply plugin: 'java-library'
apply plugin: 'maven-publish'
apply plugin: 'signing'
sourceCompatibility = 1.11
def baseVersion = '3.9.4'
def baseGroupId = 'io.github.adempiere'
repositories {
mavenLocal()
mavenCentral()
}
allprojects {
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}
}
dependencies {
api fileTree(
dir: 'lib',
include: [
'*.jar'
]
)
// ADempiere Core
api "${baseGroupId}:base:${baseVersion}"
api "${baseGroupId}:project:${baseVersion}"
}
sourceSets {
main {
java {
srcDirs = ['src/main/java']
}
}
}
java {
withJavadocJar()
withSourcesJar()
}
signing {
sign configurations.archives
}
def entityType = 'D'
version = System.getenv("ADEMPIERE_LIBRARY_VERSION") ?: "local-1.0.0"
def customGroupId = System.getenv("ADEMPIERE_LIBRARY_GROUP")
jar {
manifest {
attributes("Implementation-Title": "Adempiere Template Management",
"Implementation-Version": version,
"EntityType": entityType)
}
}
publishing {
repositories {
maven {
url = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
credentials {
username = findProperty("sonatypeUsername")
password = findProperty("sonatypePassword")
}
}
}
publications {
mavenJava(MavenPublication) {
groupId customGroupId
artifactId 'adempiere-pos-improvements'
version
from components.java
pom {
name = 'ADempiere POS Improvements'
description = 'A project to improve all definition of POS for ADempiere'
url = 'http://adempiere.io/'
licenses {
license {
name = 'GNU General Public License, version 2'
url = 'https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt'
}
}
developers {
developer {
id = 'yamelsenih'
name = 'Yamel Senih'
email = 'ysenih@erpya.com'
}
}
scm {
connection = 'scm:git:git://github.com/adempiere/adempiere-pos-improvements.git'
developerConnection = 'scm:git:ssh://github.com/adempiere/adempiere-pos-improvements.git'
url = 'http://github.com/adempiere/adempiere-pos-improvements'
}
}
}
}
}
signing {
sign publishing.publications.mavenJava
}
signing {
def signingKey = findProperty("signingKey")
def signingPassword = findProperty("signingPassword")
useInMemoryPgpKeys(signingKey, signingPassword)
sign publishing.publications.mavenJava
}