Simply processResources logic & make it compatible with future versions of Gradle #69
							
								
								
									
										4
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							@ -24,6 +24,10 @@ bin/
 | 
				
			|||||||
.classpath
 | 
					.classpath
 | 
				
			||||||
.project
 | 
					.project
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# macos
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					*.DS_Store
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# fabric
 | 
					# fabric
 | 
				
			||||||
 | 
					
 | 
				
			||||||
run/
 | 
					run/
 | 
				
			||||||
 | 
				
			|||||||
@ -26,14 +26,9 @@ dependencies {
 | 
				
			|||||||
processResources {
 | 
					processResources {
 | 
				
			||||||
	inputs.property "version", project.version
 | 
						inputs.property "version", project.version
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	from(sourceSets.main.resources.srcDirs) {
 | 
						filesMatching("fabric.mod.json") {
 | 
				
			||||||
		include "fabric.mod.json"
 | 
					 | 
				
			||||||
		expand "version": project.version
 | 
							expand "version": project.version
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					 | 
				
			||||||
	from(sourceSets.main.resources.srcDirs) {
 | 
					 | 
				
			||||||
		exclude "fabric.mod.json"
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// ensure that the encoding is set to UTF-8, no matter what the system default is
 | 
					// ensure that the encoding is set to UTF-8, no matter what the system default is
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user