Skip to content

Commit

Permalink
add builder
Browse files Browse the repository at this point in the history
  • Loading branch information
yamelsenih committed Mar 11, 2023
1 parent a47ef89 commit fe187a3
Showing 1 changed file with 111 additions and 0 deletions.
111 changes: 111 additions & 0 deletions build.gradle
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
}

0 comments on commit fe187a3

Please sign in to comment.