Add Classpath in Manifest file of jar in gradle
问题 Below is my gradle script and I need to add the data in MANIFEST.MF of jar file in below format I tried the below method but not able to achieve it. i need it in below way. I am using the gradle 2.3 apply plugin: 'java' sourceCompatibility = 1.7 jar.doFirst { manifest { attributes("Manifest-Version": "1.0", "Class-Path": configurations.compile.collect { it.getName() }.join(' ')) } } repositories { maven { url "http://cmp.tsh.thomson.com:80/artifactory/libs-release" } maven { url "http://cmp