-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
69 lines (53 loc) · 1.87 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
///////////////////////////////////////////////////////////////////////////////
//
// Build Script for maintaining Eclipse meta data file for JavaPOS code generators
//
// Author: [email protected] (2021)
//
///////////////////////////////////////////////////////////////////////////////
plugins {
id 'java'
id "org.xtext.xtend" version "4.0.0"
id 'eclipse'
}
wrapper {
gradleVersion = '8.4'
}
ext.githubProjectUrl = 'https://github.com/JavaPOSWorkingGroup/javapos-code-generators'
///////////////////////////////////////////////////////////////////////////////
// Names and Versions
///////////////////////////////////////////////////////////////////////////////
def artifactName = 'javapos-code-generators'
def groupId='org.javapos'
version='0.1'
sourceCompatibility = '1.8'
///////////////////////////////////////////////////////////////////////////////
// Project Configurations
///////////////////////////////////////////////////////////////////////////////
sourceSets {
main.java.srcDir 'src/main/xtend'
main.xtend.outputDir = 'src/main/xtend-gen'
test.java.srcDir 'src/test/xtend'
test.xtend.outputDir = 'src/test/xtend-gen'
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.eclipse.xtend:org.eclipse.xtend.lib:2.25.+'
implementation 'junit:junit:4.+'
implementation 'org.javapos:javapos-contracts:1.14.3'
testImplementation 'org.hamcrest:hamcrest-library:1.3'
}
///////////////////////////////////////////////////////////////////////////////
// Build Tasks
///////////////////////////////////////////////////////////////////////////////
def javaposManifest = manifest {
attributes('Implementation-Title': 'JavaPOS Code Generators',
'Implementation-Vendor': 'github.com/JavaPOSWorkingGroup',
'Implementation-Version': version)
}
jar {
archiveBaseName = artifactName
manifest = javaposManifest
}