apply plugin: 'java'
apply plugin: 'eclipse'

jar {
    manifest {
        attributes 'Implementation-Title': 'PDF-AS-4 PDFBOX Backend'
    }
}

repositories {
    mavenCentral()
}

task releases(type: Copy) {
	from jar.outputs
	into rootDir.toString() + "/releases/" + version + "/pdfbox1"
}

releases.dependsOn jar
releases.dependsOn sourcesJar

dependencies {
	implementation project (':pdf-as-lib')
	implementation group: 'org.slf4j', name: 'slf4j-api', version: slf4jVersion
	implementation 'org.slf4j:jcl-over-slf4j:1.7.18'
	api group: 'org.apache.pdfbox', name: 'pdfbox', version: '1.8.16'
	implementation group: 'commons-io', name: 'commons-io', version: '2.8'
	implementation group: 'ognl', name: 'ognl', version: '3.2.19'
	implementation group: 'javax.activation', name: 'activation', version: '1.1.1'

	testImplementation group: 'junit', name: 'junit', version: '4.+'
}

test {
    systemProperties 'property': 'value'
}