forked from adempiere/adempiere-processors-service
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
location-el-salvador:adempiere-3.9.4-LSV-1.0.25
- Loading branch information
1 parent
ccf342c
commit e06cde4
Showing
1 changed file
with
143 additions
and
143 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 |
---|---|---|
@@ -1,143 +1,143 @@ | ||
plugins { | ||
id 'java' | ||
id 'com.google.protobuf' version '0.9.2' | ||
id 'idea' | ||
id 'application' | ||
id 'visual-studio' | ||
} | ||
group 'com.nikhilm' | ||
sourceCompatibility = 1.11 | ||
def grpcVersion = '1.53.0' | ||
def baseVersion = 'shw-air-terminal-vertical-1.0.57' | ||
def baseGroupId = 'com.erpya' | ||
def privateDependencyBaseVersion = "adempiere-3.9.4" | ||
startScripts.enabled = false | ||
|
||
ext { | ||
javaMainClass = "org.spin.processor.server.ProcessorServer" | ||
} | ||
|
||
application { | ||
mainClass.set(javaMainClass) | ||
} | ||
jar { | ||
manifest { | ||
attributes( | ||
"Main-Class": javaMainClass | ||
) | ||
} | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
mavenLocal() | ||
maven { | ||
url = System.getenv("GITHUB_DEPLOY_REPOSITORY") ?: System.properties['deploy.repository'] ?: 'https://maven.pkg.github.com' | ||
credentials { | ||
username = System.getenv("GITHUB_DEPLOY_USER") ?: System.properties['deploy.user'] | ||
password = System.getenv("GITHUB_DEPLOY_TOKEN") ?: System.properties['deploy.token'] | ||
} | ||
} | ||
} | ||
protobuf { | ||
protoc { | ||
artifact = "com.google.protobuf:protoc:3.12.0" | ||
} | ||
plugins { | ||
grpc { | ||
artifact = 'io.grpc:protoc-gen-grpc-java:1.34.1' | ||
} | ||
} | ||
generateProtoTasks { | ||
all()*.plugins { | ||
grpc {} | ||
} | ||
all().configureEach { task -> | ||
// If true, will generate a descriptor_set.desc file under | ||
// task.outputBaseDir. Default is false. | ||
// See --descriptor_set_out in protoc documentation about what it is. | ||
task.generateDescriptorSet = true | ||
|
||
// Allows to override the default for the descriptor set location | ||
task.descriptorSetOptions.path = | ||
"${projectDir}/build/descriptors/adempiere-processors-service-service.pb" | ||
|
||
// If true, the descriptor set will contain line number information | ||
// and comments. Default is false. | ||
task.descriptorSetOptions.includeSourceInfo = true | ||
|
||
// If true, the descriptor set will contain all transitive imports and | ||
// is therefore self-contained. Default is false. | ||
task.descriptorSetOptions.includeImports = true | ||
} | ||
} | ||
} | ||
sourceSets { | ||
main { | ||
java { | ||
srcDirs 'build/generated/source/proto/main/grpc' | ||
srcDirs 'build/generated/source/proto/main/java' | ||
srcDirs 'src/main/proto' | ||
} | ||
} | ||
} | ||
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(AdempiereProcessorServer) | ||
fileMode = 0755 | ||
} | ||
|
||
// Create release for project | ||
task createRelease(type: Copy) { | ||
dependsOn build | ||
from file("$buildDir/distributions/") | ||
into file("$buildDir/release/") | ||
//destinationDir(file('build/release/')) | ||
doLast { | ||
file('build/release/') | ||
.listFiles({file -> file.isFile()} as FileFilter).sort() | ||
.each { File file -> | ||
ant.checksum file: file | ||
} | ||
} | ||
} | ||
dependencies { | ||
implementation fileTree( | ||
dir: 'dependencies', | ||
include: [ | ||
'*.jar' | ||
] | ||
) | ||
implementation "io.grpc:grpc-netty-shaded:${grpcVersion}" | ||
implementation "io.grpc:grpc-alts:${grpcVersion}" | ||
implementation "io.netty:netty-handler:4.1.89.Final" | ||
implementation "io.grpc:grpc-protobuf:${grpcVersion}" | ||
implementation "io.grpc:grpc-stub:${grpcVersion}" | ||
implementation "io.grpc:grpc-netty:${grpcVersion}" | ||
// https://mvnrepository.com/artifact/com.google.protobuf/protobuf-java | ||
implementation 'com.google.protobuf:protobuf-java:3.24.3' | ||
implementation 'com.google.protobuf:protobuf-java-util:3.24.3' | ||
implementation 'io.jsonwebtoken:jjwt-api:0.11.2' | ||
implementation 'io.jsonwebtoken:jjwt-impl:0.11.2' | ||
implementation 'io.jsonwebtoken:jjwt-jackson:0.11.2' | ||
//implementation 'javax.xml.bind:jaxb-api:2.4.0-b180830.0359' | ||
//implementation 'com.sun.xml.bind:jaxb-impl:3.0.0-M4' | ||
//implementation 'com.sun.xml.bind:jaxb-core:3.0.0-M4' | ||
//implementation 'javax.activation:activation:1.1.1' | ||
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.15.0' | ||
// ADempiere Core | ||
implementation "${baseGroupId}:base:${baseVersion}" | ||
implementation "io.github.adempiere:adempiere-grpc-utils:1.1.2" | ||
implementation "${baseGroupId}:adempiere-business-processors:adempiere-3.9.4-abp-1.0.4" | ||
// Localization El Salvador (LSV) | ||
implementation "${baseGroupId}:location-el-salvador:adempiere-3.9.4-LSV-1.0.24" | ||
|
||
// Others | ||
compileOnly 'org.apache.tomcat:annotations-api:6.0.53' | ||
} | ||
plugins { | ||
id 'java' | ||
id 'com.google.protobuf' version '0.9.2' | ||
id 'idea' | ||
id 'application' | ||
id 'visual-studio' | ||
} | ||
group 'com.nikhilm' | ||
sourceCompatibility = 1.11 | ||
def grpcVersion = '1.53.0' | ||
def baseVersion = 'shw-air-terminal-vertical-1.0.57' | ||
def baseGroupId = 'com.erpya' | ||
def privateDependencyBaseVersion = "adempiere-3.9.4" | ||
startScripts.enabled = false | ||
|
||
ext { | ||
javaMainClass = "org.spin.processor.server.ProcessorServer" | ||
} | ||
|
||
application { | ||
mainClass.set(javaMainClass) | ||
} | ||
jar { | ||
manifest { | ||
attributes( | ||
"Main-Class": javaMainClass | ||
) | ||
} | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
mavenLocal() | ||
maven { | ||
url = System.getenv("GITHUB_DEPLOY_REPOSITORY") ?: System.properties['deploy.repository'] ?: 'https://maven.pkg.github.com' | ||
credentials { | ||
username = System.getenv("GITHUB_DEPLOY_USER") ?: System.properties['deploy.user'] | ||
password = System.getenv("GITHUB_DEPLOY_TOKEN") ?: System.properties['deploy.token'] | ||
} | ||
} | ||
} | ||
protobuf { | ||
protoc { | ||
artifact = "com.google.protobuf:protoc:3.12.0" | ||
} | ||
plugins { | ||
grpc { | ||
artifact = 'io.grpc:protoc-gen-grpc-java:1.34.1' | ||
} | ||
} | ||
generateProtoTasks { | ||
all()*.plugins { | ||
grpc {} | ||
} | ||
all().configureEach { task -> | ||
// If true, will generate a descriptor_set.desc file under | ||
// task.outputBaseDir. Default is false. | ||
// See --descriptor_set_out in protoc documentation about what it is. | ||
task.generateDescriptorSet = true | ||
|
||
// Allows to override the default for the descriptor set location | ||
task.descriptorSetOptions.path = | ||
"${projectDir}/build/descriptors/adempiere-processors-service-service.pb" | ||
|
||
// If true, the descriptor set will contain line number information | ||
// and comments. Default is false. | ||
task.descriptorSetOptions.includeSourceInfo = true | ||
|
||
// If true, the descriptor set will contain all transitive imports and | ||
// is therefore self-contained. Default is false. | ||
task.descriptorSetOptions.includeImports = true | ||
} | ||
} | ||
} | ||
sourceSets { | ||
main { | ||
java { | ||
srcDirs 'build/generated/source/proto/main/grpc' | ||
srcDirs 'build/generated/source/proto/main/java' | ||
srcDirs 'src/main/proto' | ||
} | ||
} | ||
} | ||
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(AdempiereProcessorServer) | ||
fileMode = 0755 | ||
} | ||
|
||
// Create release for project | ||
task createRelease(type: Copy) { | ||
dependsOn build | ||
from file("$buildDir/distributions/") | ||
into file("$buildDir/release/") | ||
//destinationDir(file('build/release/')) | ||
doLast { | ||
file('build/release/') | ||
.listFiles({file -> file.isFile()} as FileFilter).sort() | ||
.each { File file -> | ||
ant.checksum file: file | ||
} | ||
} | ||
} | ||
dependencies { | ||
implementation fileTree( | ||
dir: 'dependencies', | ||
include: [ | ||
'*.jar' | ||
] | ||
) | ||
implementation "io.grpc:grpc-netty-shaded:${grpcVersion}" | ||
implementation "io.grpc:grpc-alts:${grpcVersion}" | ||
implementation "io.netty:netty-handler:4.1.89.Final" | ||
implementation "io.grpc:grpc-protobuf:${grpcVersion}" | ||
implementation "io.grpc:grpc-stub:${grpcVersion}" | ||
implementation "io.grpc:grpc-netty:${grpcVersion}" | ||
// https://mvnrepository.com/artifact/com.google.protobuf/protobuf-java | ||
implementation 'com.google.protobuf:protobuf-java:3.24.3' | ||
implementation 'com.google.protobuf:protobuf-java-util:3.24.3' | ||
implementation 'io.jsonwebtoken:jjwt-api:0.11.2' | ||
implementation 'io.jsonwebtoken:jjwt-impl:0.11.2' | ||
implementation 'io.jsonwebtoken:jjwt-jackson:0.11.2' | ||
//implementation 'javax.xml.bind:jaxb-api:2.4.0-b180830.0359' | ||
//implementation 'com.sun.xml.bind:jaxb-impl:3.0.0-M4' | ||
//implementation 'com.sun.xml.bind:jaxb-core:3.0.0-M4' | ||
//implementation 'javax.activation:activation:1.1.1' | ||
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.15.0' | ||
// ADempiere Core | ||
implementation "${baseGroupId}:base:${baseVersion}" | ||
implementation "io.github.adempiere:adempiere-grpc-utils:1.1.2" | ||
implementation "${baseGroupId}:adempiere-business-processors:adempiere-3.9.4-abp-1.0.4" | ||
// Localization El Salvador (LSV) | ||
implementation "${baseGroupId}:location-el-salvador:adempiere-3.9.4-LSV-1.0.25" | ||
|
||
// Others | ||
compileOnly 'org.apache.tomcat:annotations-api:6.0.53' | ||
} |