Gradle - Exclude file from being packaged with jar

I want to exclude AMAuthN.properties from the built jar. This file keeps showing up in the root folder of the compiled jar. The file is located at AMAuthN\src\main\resources\AMAuthN.properties relative to the project folder root. Thanks!

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' } 

Replay

Category: java Time: 2016-07-29 Views: 0
Tags: java gradle

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development

search

Front-end development

Database

development tools

Open Platform

Javascript development

.NET development

cloud computing

server

Copyright (C) avrocks.com, All Rights Reserved.

processed in 0.153 (s). 12 q(s)