forked from adempiere/adempiere
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
98 lines (87 loc) · 2.4 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
apply plugin: 'java-library'
apply plugin: 'maven-publish'
apply plugin: 'signing'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenLocal()
mavenCentral()
}
if (JavaVersion.current().isJava8Compatible()) {
allprojects {
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}
}
}
dependencies {
api 'io.github.adempiere:base:3.9.4-develop-1.1'
}
sourceSets {
main {
java {
srcDirs = ['src/main/java/base']
}
}
}
java {
withJavadocJar()
withSourcesJar()
}
signing {
sign configurations.archives
}
def entityType = 'D'
version = "3.9.4-develop-1.0"
jar {
manifest {
attributes("Implementation-Title": "Adempiere Project Management",
"Implementation-Version": version,
"EntityType": entityType)
}
}
publishing {
repositories {
maven {
url = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
credentials {
username = ossrhUsername ?: System.getenv("OSSRH_USER_NAME")
password = ossrhPassword ?: System.getenv("OSSRH_PASSWORD")
}
}
}
publications {
mavenJava(MavenPublication) {
groupId 'io.github.adempiere'
artifactId 'point-of-sales'
version
from components.java
pom {
name = 'Point Of Sales'
description = 'Base Library of Point of Sales'
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 = '[email protected]'
}
}
scm {
connection = 'scm:git:git://github.com/adempiere/adempiere.git'
developerConnection = 'scm:git:ssh://github.com/adempiere/adempiere.git'
url = 'http://github.com/adempiere/adempiere'
}
}
}
}
}
signing {
sign publishing.publications.mavenJava
}