mulesoft-labs / mule-gradle-plugin

Plugin for building mule apps with the gradle build system.
Apache License 2.0
24 stars 14 forks source link

Extra libraries are added to zip on build #87

Open IvanLatysh opened 6 years ago

IvanLatysh commented 6 years ago

A simple test project with 1 dependency on build produce zip file with bunch of libraries:

jcip-annotations-1.0.jar lang-tag-1.4.jar jackson-jaxrs-1.9.2.jar stax-api-1.0.1.jar json-smart-1.1.1.jar adal4j-1.0.0.jar jettison-1.1.jar jaxb-api-2.2.2.jar azure-keyvault-0.9.3.jar jersey-client-1.13.jar jersey-json-1.13.jar azure-core-0.9.3.jar nimbus-jose-jwt-3.1.2.jar gson-2.2.4.jar oauth2-oidc-sdk-4.5.jar commons-codec-2.0-SNAPSHOT.jar httpcore-4.3.3.jar commons-lang-2.6.jar commons-lang3-3.3.1.jar jersey-core-1.13.jar mail-1.4.7.jar httpclient-4.3.6.jar mssql-jdbc-6.1.0.jre7.jar jaxb-impl-2.2.3-1.jar bcprov-jdk15on-1.51.jar

Build file ` apply plugin: 'java' apply plugin: 'mule'

mule.version = '3.8.0' sourceCompatibility = 1.8 mule.muleEnterprise = false

buildscript { dependencies { classpath group: 'org.mulesoft.build', name: 'mule-gradle-plugin', version: '1.2.2' }

repositories {
    mavenCentral()
    maven {
        url 'http://repository.mulesoft.org/releases'
    }
    maven {
        url 'http://repo.spring.io/plugins-release'
    }
}

}

repositories { mavenCentral() }

dependencies { compile group: 'com.microsoft.sqlserver', name: 'mssql-jdbc', version: '6.1.0.jre7'

testCompile group: 'junit', name: 'junit', version: '4.12'

} `

Is there are way to exclude those libraries from zip.