-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a47ef89
commit fe187a3
Showing
1 changed file
with
111 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 = "1.0.0" | ||
|
||
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 'io.github.adempiere' | ||
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 = '[email protected]' | ||
} | ||
} | ||
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 | ||
} |