Subversion Repositories DevTools

Rev

Go to most recent revision | Details | 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('log4j')
43
    compile jats('ojdbc')
44
    compile jats('j2ssh-maverick')
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' 
53
	runTimeLibs 'log4j:log4j-1.2.14'
54
	runTimeLibs 'j2ssh-maverick:j2ssh-maverick-1.5.2'
55
	runTimeLibs 'j2ssh-maverick:jzlib-1.1.3'
56
	runTimeLibs 'j2ssh-maverick:oro-2.0.8'
57
 
58
}
59
 
60
//  Prevent the project jar from being built
61
//  This project builds bunch of jars and does not need to project jar
62
jar.enabled = false
63
 
64
// Build individual jars
65
task ant_abt(type: Jar) {
66
	baseName = 'ant-abtD'
67
	from(sourceSets.main.output) {
68
		include 'com/erggroup/buildtool/abt/**'
69
	}
70
	 manifest {
71
		attributes (
72
			'Implementation-Title' 		: 'com.erggroup.buildtool.ant-abt'
73
		)
74
	}
75
}
76
 
77
task abtd(type: Jar) {
78
	baseName = 'abtdD'
79
	from(sourceSets.main.output) {
80
		include 'com/erggroup/buildtool/daemon/**'
81
	}
82
	manifest {
83
		attributes (
84
			'Main-Class': 'com.erggroup.buildtool.daemon.BuildDaemon',
85
			'Implementation-Title' : 'com.erggroup.buildtool.abt',
86
			'Class-Path' : 'utilitiesD.jar rippleEngineD.jar ant-abtD.jar smtpD.jar ant.jar ant-launcher.jar mail.jar ojdbc6.jar log4j-1.2.14.jar j2ssh-maverick-1.5.2.jar jzlib-1.1.3.jar oro-2.0.8.jar',
87
		)
88
	}
89
}
90
 
91
task escrow(type: Jar) {
92
	baseName = 'escrowD'
93
	from(sourceSets.main.output) {
94
		include 'com/erggroup/buildtool/escrow/**'
95
	}
96
	manifest {
97
		attributes (
98
			'Implementation-Title' : 'com.erggroup.buildtool.escrow',
99
			'Main-Class': 'com.erggroup.buildtool.escrow.ESCROWBuild',
100
			'Class-Path': 'utilitiesD.jar rippleEngineD.jar ojdbc6.jar log4j-1.2.14.jar'
101
		)
102
	}
103
}
104
 
105
task indef(type: Jar) {
106
	baseName = 'indefD'
107
	from(sourceSets.main.output) {
108
		include 'com/erggroup/buildtool/indef/**'
109
	}
110
	manifest {
111
		attributes (
112
			'Implementation-Title' : 'com.erggroup.buildtool.indef',
113
			'Main-Class': 'com.erggroup.buildtool.indef.Indef',
114
			'Class-Path': 'rippleEngineD.jar classes12.jar log4j-1.2.14.jar'
115
		)
116
	}
117
}
118
 
119
task rippleEngine(type: Jar) {
120
	baseName = 'rippleEngineD'
121
	from(sourceSets.main.output) {
122
		include 'com/erggroup/buildtool/ripple/**'
123
	}
124
	manifest {
125
	}
126
}
127
 
128
task smtp(type: Jar) {
129
	baseName = 'smtpD'
130
	from(sourceSets.main.output) {
131
		include 'com/erggroup/buildtool/smtp/**'
132
	}
133
	manifest {
134
		attributes (
135
			'Implementation-Title' : 'com.erggroup.buildtool.smtp'
136
		)
137
	}
138
 
139
}
140
 
141
task utilities(type: Jar) {
142
	baseName = 'utilitiesD'
143
	from(sourceSets.main.output) {
144
		include 'com/erggroup/buildtool/utilities/**'
145
	}
146
	manifest {
147
		attributes (
148
			'Implementation-Title' : 'com.erggroup.buildtool.utilities'
149
		)
150
	}
151
}
152
 
153
task config(type: Jar) {
154
	baseName = 'configD'
155
	from(sourceSets.main.output) {
156
		include 'com/erggroup/buildtool/util/**'
157
	}
158
	manifest {
159
		attributes (
160
			'Implementation-Title' : 'com.erggroup.buildtool.util'
161
		)
162
	}
163
}
164
 
165
 
166
//  Package the files we want to export
167
//      The files are placed directly int the Jats packaging directory
168
//      This avoids the need for a Jats directive to do the packaging
169
task packageFiles(type: Copy) {
170
	dependsOn ant_abt, abtd, escrow, indef, rippleEngine, smtp, utilities, config
171
 
172
    into project.ext.pkgBaseDir + '/etc'
173
 
174
    from  configurations.runTimeLibs.files
175
    from  ("${buildDir}/libs") {
176
		include '*.jar'
177
        exclude '**/indef*.jar'
178
	}
179
}
180
 
181
build.dependsOn packageFiles
182
 
183
def void explainMe(it){
184
    //println "Examining $it.name:"
185
    println "Meta:"
186
    println it.metaClass.metaMethods*.name.sort().unique()
187
    println "Methods:"
188
    println it.metaClass.methods*.name.sort().unique()
189
    println "Depends On:"
190
    //println it.dependsOn.collect({it*.getName()})
191
    println "Properties:"
192
    println it.properties.entrySet()*.toString()
193
        .sort().toString().replaceAll(", ","\n")
194
}
195
 
196
//explainMe(configurations.archives)
197