Subversion Repositories DevTools

Rev

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