MORE UPDATES
This commit is contained in:
		
							
								
								
									
										23
									
								
								build.gradle
									
									
									
									
									
								
							
							
						
						
									
										23
									
								
								build.gradle
									
									
									
									
									
								
							| @ -1,11 +1,9 @@ | |||||||
| plugins { | plugins { | ||||||
|     id "fabric-loom" version "1.9-SNAPSHOT" |     id "fabric-loom" version "1.8+" | ||||||
|     id "io.github.p03w.machete" version "1.+" // automatic jar compressing on build |     id "io.github.p03w.machete" version "1.+" // automatic jar compressing on build | ||||||
|     id 'maven-publish' |     id 'maven-publish' | ||||||
| } | } | ||||||
|  |  | ||||||
| sourceCompatibility = JavaVersion.VERSION_17 |  | ||||||
|  |  | ||||||
| base.archivesName = archives_base_name | base.archivesName = archives_base_name | ||||||
| group = project.maven_group | group = project.maven_group | ||||||
|  |  | ||||||
| @ -110,7 +108,7 @@ processResources { | |||||||
|  |  | ||||||
| tasks.withType(JavaCompile).configureEach { | tasks.withType(JavaCompile).configureEach { | ||||||
|     it.options.encoding = "UTF-8" |     it.options.encoding = "UTF-8" | ||||||
|     it.options.release = Integer.parseInt(sourceCompatibility) |     it.options.release = 17 | ||||||
| } | } | ||||||
|  |  | ||||||
| java { | java { | ||||||
| @ -122,20 +120,3 @@ jar { | |||||||
|         rename { "${it}_${project.archivesBaseName}"} |         rename { "${it}_${project.archivesBaseName}"} | ||||||
|     } |     } | ||||||
| } | } | ||||||
|  |  | ||||||
| // configure the maven publication |  | ||||||
| publishing { |  | ||||||
|     publications { |  | ||||||
|         mavenJava(MavenPublication) { |  | ||||||
|             from components.java |  | ||||||
|         } |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     // See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing. |  | ||||||
|     repositories { |  | ||||||
|         // Add repositories to publish to here. |  | ||||||
|         // Notice: This block does NOT have the same function as the block in the top level. |  | ||||||
|         // The repositories here will be used for publishing your artifact, not for |  | ||||||
|         // retrieving dependencies. |  | ||||||
|     } |  | ||||||
| } |  | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user