Commit 4391d91e authored by Gradl, Tobias's avatar Gradl, Tobias
Browse files

Progress with debian packaging

parent 62a0826b
Loading
Loading
Loading
Loading
Loading
+24 −0
Original line number Diff line number Diff line
@@ -14,6 +14,7 @@ plugins {
    id 'war'
    //id "io.spring.dependency-management" version "1.0.6.RELEASE"
    id 'maven-publish'
    id "org.gretty" version "3.0.1"
}

apply plugin: "nebula.deb"
@@ -99,6 +100,29 @@ task sourcesJar(type: Jar, dependsOn: classes) {
    from sourceSets.main.allSource
}



task unpackFiles(type: Copy) {
    from(components.web)
    into "$buildDir/web"
}



task fooDeb(type: Deb) {
    release '1'
    packageName 'dariah-dme'
    replaces 'dme'
    maintainer 'info@de.dariah.eu'
    requires('openjdk-8-jdk').or('openjdk-11-jdk')
    signingKeyId('CB012F105B632B46C2A7B4918FC46DAC1BC3E238')

    from("$buildDir/classes/java") {
        into 'var/lib'
    }
}


/*task javadocJar(type: Jar, dependsOn: javadoc) {
    classifier = 'javadoc'
    from javadoc.destinationDir