Subversion Repositories DevTools

Rev

Rev 7034 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
6914 dpurdie 1
/*
2
 * This build file was generated by the Gradle 'init' task.
3
 *
4
 * This generated file contains a sample Java Library project to get you started.
5
 * For more details take a look at the Java Libraries chapter in the Gradle
6
 * user guide available at https://docs.gradle.org/3.5/userguide/java_library_plugin.html
7
 */
8
 
9
// Configure plugins
10
plugins {
11
 id 'java-library' 		// This is a Java project
12
 id 'eclipse-wtp' 		// Support for import to eclipse
13
 id 'idea' 				// Support for import to intelli-j
14
}
15
 
16
//	This project must use 1.6 for compatability with some Solaris Build Machines
17
java {
18
		sourceCompatibility = JavaVersion.VERSION_1_6
19
		targetCompatibility = JavaVersion.VERSION_1_6
20
}
21
 
22
// Apply the java-library plugin to add support for Java Library
23
apply from: 'interface/jats.gradle'
24
 
25
// In this section you declare where to find the dependencies of your project
26
// JATS - DO NOT HAVE REPO
27
//repositories {
28
    // Use jcenter for resolving your dependencies.
29
    // You can declare any Maven/Ivy/file repository here.
30
    //jcenter()
31
//}
32
 
33
configurations {
34
	runTimeLibs	// configuration that holds jars to copy into lib - Runtime dependecies
35
}
36
 
37
dependencies {
38
    // Main Dependencies
39
    //compile jats('interface')
40
    compile jats('apache-ant')
41
    compile jats('javaxmail')
42
    compile jats('ojdbc')
43
    compile jats('j2ssh-maverick')
7033 dpurdie 44
    implementation 'org.slf4j:slf4j-api:1.7+'
6914 dpurdie 45
 
46
    compile jats('junit')
47
 
48
	// Specify libs to be embedded into the main jar file
49
	runTimeLibs 'apache-ant:ant'
50
	runTimeLibs 'apache-ant:ant-launcher'
51
	runTimeLibs 'javaxmail:mail'
52
	runTimeLibs 'ojdbc:ojdbc6' 
7033 dpurdie 53
	runTimeLibs 'log4j:log4j:1.2.17+'
54
	runTimeLibs 'org.slf4j:slf4j-api:1.7+'
55
	runTimeLibs 'org.slf4j:slf4j-log4j12:1.7+'
6914 dpurdie 56
	runTimeLibs 'j2ssh-maverick:j2ssh-maverick-1.5.2'
57
	runTimeLibs 'j2ssh-maverick:jzlib-1.1.3'
58
	runTimeLibs 'j2ssh-maverick:oro-2.0.8'
59
 
60
}
61
 
62
//  Prevent the project jar from being built
63
//  This project builds bunch of jars and does not need to project jar
64
jar.enabled = false
65
 
66
// Build individual jars
67
task ant_abt(type: Jar) {
68
	baseName = 'ant-abtD'
69
	from(sourceSets.main.output) {
70
		include 'com/erggroup/buildtool/abt/**'
71
	}
72
	 manifest {
73
		attributes (
74
			'Implementation-Title' 		: 'com.erggroup.buildtool.ant-abt'
75
		)
76
	}
77
}
78
 
79
task abtd(type: Jar) {
80
	baseName = 'abtdD'
81
	from(sourceSets.main.output) {
82
		include 'com/erggroup/buildtool/daemon/**'
83
	}
84
	manifest {
85
		attributes (
86
			'Main-Class': 'com.erggroup.buildtool.daemon.BuildDaemon',
87
			'Implementation-Title' : 'com.erggroup.buildtool.abt',
7033 dpurdie 88
			'Class-Path' : '. utilitiesD.jar rippleEngineD.jar ant-abtD.jar smtpD.jar ant.jar ant-launcher.jar slf4j-api-1.7.26.jar slf4j-log4j12-1.7.26.jar log4j-1.2.17.jar mail.jar ojdbc6.jar j2ssh-maverick-1.5.2.jar jzlib-1.1.3.jar oro-2.0.8.jar'
6914 dpurdie 89
		)
90
	}
91
}
92
task escrow(type: Jar) {
93
	baseName = 'escrowD'
94
	from(sourceSets.main.output) {
95
		include 'com/erggroup/buildtool/escrow/**'
96
	}
97
	manifest {
98
		attributes (
99
			'Implementation-Title' : 'com.erggroup.buildtool.escrow',
100
			'Main-Class': 'com.erggroup.buildtool.escrow.ESCROWBuild',
7033 dpurdie 101
			'Class-Path': '. utilitiesD.jar rippleEngineD.jar ojdbc6.jar slf4j-api-1.7.26.jar slf4j-log4j12-1.7.26.jar log4j-1.2.17.jar'
6914 dpurdie 102
		)
103
	}
104
}
105
 
106
task indef(type: Jar) {
107
	baseName = 'indefD'
108
	from(sourceSets.main.output) {
109
		include 'com/erggroup/buildtool/indef/**'
110
	}
111
	manifest {
112
		attributes (
113
			'Implementation-Title' : 'com.erggroup.buildtool.indef',
114
			'Main-Class': 'com.erggroup.buildtool.indef.Indef',
115
			'Class-Path': 'rippleEngineD.jar classes12.jar log4j-1.2.14.jar'
116
		)
117
	}
118
}
119
 
120
task rippleEngine(type: Jar) {
121
	baseName = 'rippleEngineD'
122
	from(sourceSets.main.output) {
123
		include 'com/erggroup/buildtool/ripple/**'
124
	}
125
	manifest {
126
	}
127
}
128
 
129
task smtp(type: Jar) {
130
	baseName = 'smtpD'
131
	from(sourceSets.main.output) {
132
		include 'com/erggroup/buildtool/smtp/**'
133
	}
134
	manifest {
135
		attributes (
136
			'Implementation-Title' : 'com.erggroup.buildtool.smtp'
137
		)
138
	}
139
 
140
}
141
 
142
task utilities(type: Jar) {
143
	baseName = 'utilitiesD'
144
	from(sourceSets.main.output) {
145
		include 'com/erggroup/buildtool/utilities/**'
146
	}
147
	manifest {
148
		attributes (
149
			'Implementation-Title' : 'com.erggroup.buildtool.utilities'
150
		)
151
	}
152
}
153
 
154
task config(type: Jar) {
155
	baseName = 'configD'
156
	from(sourceSets.main.output) {
157
		include 'com/erggroup/buildtool/util/**'
158
	}
159
	manifest {
160
		attributes (
161
			'Implementation-Title' : 'com.erggroup.buildtool.util'
162
		)
163
	}
164
}
165
 
166
 
167
//  Package the files we want to export
168
//      The files are placed directly int the Jats packaging directory
169
//      This avoids the need for a Jats directive to do the packaging
170
task packageFiles(type: Copy) {
171
	dependsOn ant_abt, abtd, escrow, indef, rippleEngine, smtp, utilities, config
172
 
173
    into project.ext.pkgBaseDir + '/etc'
174
 
175
    from  configurations.runTimeLibs.files
176
    from  ("${buildDir}/libs") {
177
		include '*.jar'
178
        exclude '**/indef*.jar'
179
	}
180
}
181
 
182
build.dependsOn packageFiles
183
 
184
def void explainMe(it){
185
    //println "Examining $it.name:"
186
    println "Meta:"
187
    println it.metaClass.metaMethods*.name.sort().unique()
188
    println "Methods:"
189
    println it.metaClass.methods*.name.sort().unique()
190
    println "Depends On:"
191
    //println it.dependsOn.collect({it*.getName()})
192
    println "Properties:"
193
    println it.properties.entrySet()*.toString()
194
        .sort().toString().replaceAll(", ","\n")
195
}
196
 
197
//explainMe(configurations.archives)
198