docsettings/build.gradle

64 lines
1.8 KiB
Groovy

apply plugin: 'java'
apply plugin: 'eclipse'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
test {
useJUnitPlatform()
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.3.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.3.1'
compileClasspath 'org.libreoffice:jurt:5.3.2'
compileClasspath 'org.libreoffice:juh:5.3.2'
compileClasspath 'org.libreoffice:ridl:5.3.2'
compileClasspath 'org.libreoffice:unoil:5.3.2'
compileClasspath group: 'org.slf4j', name: 'slf4j-api', version: '1.7.32'
compileClasspath 'ch.qos.logback:logback-classic:1.2.6'
compileClasspath 'ch.qos.logback:logback-core:1.2.6'
compileClasspath 'org.apache.tika:tika-core:2.1.0'
}
task oxtjar(type: Jar) {
archiveName 'docsettings_oxt.jar'
manifest {
attributes("Implementation-Title": rootProject.name,
"Implementation-Version": project.version,
"RegistrationClassName" : "pro.litvinovg.docsettings.RegistrationHandler",
"Class-Path" : "jasp.jar parser.jar")
}
from('src/main/java') {
include '**/*.classes'
include 'logback.xml'
include 'pro/litvinovg/docsettings/resources/*.png'
include 'pro/litvinovg/docsettings/localizations/*.properties'
}
from (sourceSets.main.output){
include 'pro/litvinovg/**/*.class'
include 'ch/**/*'
include 'org/slf4j/**/*'
}
from {
configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
}
task oxt(type: Zip) {
dependsOn = [ 'oxtjar' ]
from './oxt/'
include '*'
include '*/*'
include '*/*/*'
include '*/*/*/*'
exclude '.*'
from ('build/libs/docsettings_oxt.jar'){
include '*'
}
archiveName 'docSettings.oxt'
}