Skip to content

Commit

Permalink
Fixed error with main class
Browse files Browse the repository at this point in the history
  • Loading branch information
yamelsenih committed Oct 16, 2023
1 parent f671152 commit d44257e
Showing 1 changed file with 3 additions and 45 deletions.
48 changes: 3 additions & 45 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ plugins {
id 'idea'
id 'application'
id 'visual-studio'
id 'maven-publish'
}
group 'com.nikhilm'
sourceCompatibility = 1.11
Expand All @@ -15,7 +14,7 @@ def privateDependencyBaseVersion = "adempiere-3.9.4"
startScripts.enabled = false

ext {
javaMainClass = "org.spin.template.server.TemplateServer"
javaMainClass = "org.spin.processor.server.ProcessorServer"
}

application {
Expand Down Expand Up @@ -82,15 +81,15 @@ sourceSets {
}
}
}
task AdempiereTemplateServer(type: CreateStartScripts) {
task AdempiereProcessorServer(type: CreateStartScripts) {
mainClass = javaMainClass
applicationName = 'adempiere-processors-service-server'
outputDir = new File(project.buildDir, 'tmp')
classpath = jar.outputs.files + project.configurations.runtimeClasspath
}

applicationDistribution.into('bin') {
from(AdempiereTemplateServer)
from(AdempiereProcessorServer)
fileMode = 0755
}

Expand Down Expand Up @@ -139,44 +138,3 @@ dependencies {
// Others
compileOnly 'org.apache.tomcat:annotations-api:6.0.53'
}


def packageVersion = System.getenv("LIBRARY_VERSION") ?: '1.0.0'

publishing {
repositories {
maven {
url = System.properties['deploy.packages'] ?: System.getenv("GITHUB_PACKAGES_URL") ?: "https://maven.pkg.github.com/"
credentials {
username = System.properties['deploy.user'] ?: System.getenv("GITHUB_DEPLOY_USER") ?: ''
password = System.properties['deploy.token'] ?: System.getenv("GITHUB_DEPLOY_TOKEN") ?: ''
}
}
}
publications {
mavenJava(MavenPublication) {
groupId 'org.adempiere.template'
artifactId 'adempiere-processors-service'
version packageVersion
from components.java
pom {
name = 'ADempiere Template'
description = 'A Template for ADempiere ERP'
url = 'https://www.erpya.com/'
licenses {
license {
name = 'GNU General Public License v3.0'
url = 'https://www.gnu.org/licenses/gpl-3.0.txt'
}
}
developers {
developer {
id = 'yamelsenih'
name = 'Yamel Senih'
email = 'ysenih@erpya.com'
}
}
}
}
}
}

0 comments on commit d44257e

Please sign in to comment.