brouter/brouter-server/build.gradle
Manuel Fuhr cf4a188e40 Rename flavours to specify targetSdkVersion
The targetSdkVersion specifies which behaviour the app expects from the
android platform. For past releases of BRouter the targetSdkVersion was
specified in the filename, therefore this restores the old bevahior.
2021-10-23 06:55:17 +02:00

80 lines
2.1 KiB
Groovy

plugins {
id 'application'
}
application {
mainClass.set('btools.server.BRouter')
distTar.enabled = false
jar {
manifest {
attributes "Main-Class": getMainClass(), "Implementation-Version": project.version
}
}
task fatJar(type: Jar) {
archiveFileName = 'brouter-' + project.version + '-all.jar'
manifest.from jar.manifest
classifier = 'all'
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
} {
exclude "META-INF/*.SF"
exclude "META-INF/*.DSA"
exclude "META-INF/*.RSA"
}
with jar
}
}
distZip {
dependsOn fatJar
archiveFileName = 'brouter-' + project.version + '.zip'
}
distributions {
main {
contents {
exclude('**/brouter-codec*.jar')
exclude('**/brouter-core*.jar')
exclude('**/brouter-expressions*.jar')
exclude('**/brouter-map-creator*.jar')
exclude('**/brouter-mapaccess*.jar')
exclude('**/brouter-server*.jar')
exclude('**/brouter-util*.jar')
exclude('**/brouter-server')
exclude('**/brouter-server.bat')
exclude('**/all.brf')
exclude('**/dummy.brf')
exclude('**/softaccess.brf')
from ('../misc') {
include 'readmes/*'
include 'profiles2/*'
}
from ('../brouter-routing-app/build/outputs/apk/api19/release') {
include '*.apk'
}
from ('../brouter-routing-app/build/outputs/apk/api30/release') {
include '*.apk'
}
from ('../brouter-server/build/libs') {
include 'brouter-*-all.jar'
}
}
}
}
dependencies {
testImplementation 'junit:junit:4.13.1'
implementation project(':brouter-codec')
implementation project(':brouter-core')
implementation project(':brouter-expressions')
implementation project(':brouter-map-creator')
implementation project(':brouter-mapaccess')
implementation project(':brouter-util')
}