Should fix jar size
This commit is contained in:
		
							parent
							
								
									eee410a8f0
								
							
						
					
					
						commit
						0979217d0b
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		|  | @ -74,7 +74,8 @@ sourceSets { | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| jar { | jar { | ||||||
| 	from (configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }) { | 	duplicatesStrategy = DuplicatesStrategy.EXCLUDE | ||||||
|  | 	from (configurations.shade.collect { it.isDirectory() ? it : zipTree(it) }) { | ||||||
| 		exclude 'META-INF/*' | 		exclude 'META-INF/*' | ||||||
| 		exclude 'META-INF' | 		exclude 'META-INF' | ||||||
| 	} | 	} | ||||||
|  | @ -93,7 +94,7 @@ publishing { | ||||||
| 			version project.version | 			version project.version | ||||||
| 
 | 
 | ||||||
| 			from components.java | 			from components.java | ||||||
| 			 | 
 | ||||||
| 			//Removes all of the dependencies from the maven pom, prevents sub projects downloading all the libs, as we use a fat jar | 			//Removes all of the dependencies from the maven pom, prevents sub projects downloading all the libs, as we use a fat jar | ||||||
| 			pom.withXml { | 			pom.withXml { | ||||||
| 				asNode().remove(asNode().get('dependencies')) | 				asNode().remove(asNode().get('dependencies')) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue