8
Chcę, aby wykluczyćAMAuthN.properties
z wbudowanego słoika. Ten plik jest nadal wyświetlany w folderze głównym skompilowanego pliku jar. Plik znajduje się pod adresem AMAuthN\src\main\resources\AMAuthN.properties
względem katalogu głównego projektu. Dzięki!Gradle - wyklucz plik zapakowany w słoik
apply plugin: 'java'
apply plugin: 'eclipse'
version = '1.0'
sourceCompatibility = 1.6
targetCompatibility = 1.6
test {
testLogging {
showStandardStreams = true
}
}
// Create a single Jar with all dependencies
jar {
manifest {
attributes 'Implementation-Title': 'Gradle Jar File Example',
'Implementation-Version': version,
'Main-Class': 'com.axa.openam'
}
baseName = project.name
from {
configurations.compile.collect {
it.isDirectory() ? it : zipTree(it)
}
}
}
// Get dependencies from Maven central repository
repositories {
mavenCentral()
}
// Project dependencies
dependencies {
compile 'com.google.code.gson:gson:2.5'
testCompile 'junit:junit:4.12'
}
za wyjątkiem wykorzystania więcej niż jednej rzeczy: 'słoik {wykluczyć ('thing1', '')} thing2' –
dobry punkt, czyni sensie logicznym, jak również. – SomeStudent