more build improvements
This commit is contained in:
		
							parent
							
								
									ec73bdabfa
								
							
						
					
					
						commit
						1dc17ac487
					
				| @ -1,32 +1,16 @@ | |||||||
| plugins { | tasks.register("build").configure { | ||||||
|     kotlin("jvm") version "2.2.10" |     group = "build" | ||||||
|     kotlin("plugin.serialization") version "2.2.20" |     dependsOn("test") | ||||||
| } |     dependsOn(":plt-build:build") | ||||||
| 
 |  | ||||||
| group = "moe.rosa" |  | ||||||
| version = "0.1.0" |  | ||||||
| 
 |  | ||||||
| repositories { |  | ||||||
|     mavenCentral() |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| dependencies { |  | ||||||
|     testImplementation(kotlin("test")) |  | ||||||
|     implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.9.0") |  | ||||||
|     implementation(kotlin("reflect")) |  | ||||||
| } |  | ||||||
| kotlin { |  | ||||||
|     jvmToolchain(24) |  | ||||||
| } |  | ||||||
| 
 |  | ||||||
| tasks.build.configure { |  | ||||||
|     dependsOn(":plt-build-wrapper:compileGo") |     dependsOn(":plt-build-wrapper:compileGo") | ||||||
|     dependsOn(":plt-fetch:compileGo") |     dependsOn(":plt-fetch:compileGo") | ||||||
|     dependsOn(":plt-pkg:compileGo") |     dependsOn(":plt-pkg:compileGo") | ||||||
|     dependsOn(":plt-server:compileGo") |     dependsOn(":plt-server:compileGo") | ||||||
|     dependsOn(":plt-updated:compileGo") |     dependsOn(":plt-updated:compileGo") | ||||||
| } | } | ||||||
| tasks.test.configure { | tasks.register("test").configure { | ||||||
|  |     group = "verification" | ||||||
|  |     dependsOn(":plt-build:test") | ||||||
|     dependsOn(":plt-build-wrapper:testGo") |     dependsOn(":plt-build-wrapper:testGo") | ||||||
|     dependsOn(":plt-fetch:testGo") |     dependsOn(":plt-fetch:testGo") | ||||||
|     dependsOn(":plt-pkg:testGo") |     dependsOn(":plt-pkg:testGo") | ||||||
|  | |||||||
| @ -11,7 +11,7 @@ class GoPlugin : Plugin<Project> { | |||||||
|             group = "go" |             group = "go" | ||||||
|             description = "compile all go source files and output into build directory" |             description = "compile all go source files and output into build directory" | ||||||
|             workingDir(project.layout.projectDirectory) |             workingDir(project.layout.projectDirectory) | ||||||
|             commandLine("go", "build", "-o", "../build/go") |             commandLine("go", "build", "-o", "../build/go/${project.name}") | ||||||
|         } |         } | ||||||
|         project.tasks.register("runGo", Exec::class.java) { |         project.tasks.register("runGo", Exec::class.java) { | ||||||
|             group = "go" |             group = "go" | ||||||
|  | |||||||
| @ -1,5 +1,6 @@ | |||||||
| plugins { | plugins { | ||||||
|     id("java") |     kotlin("jvm") version "2.2.10" | ||||||
|  |     kotlin("plugin.serialization") version "2.2.20" | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| group = "moe.rosa" | group = "moe.rosa" | ||||||
| @ -13,8 +14,17 @@ dependencies { | |||||||
|     testImplementation(platform("org.junit:junit-bom:5.10.0")) |     testImplementation(platform("org.junit:junit-bom:5.10.0")) | ||||||
|     testImplementation("org.junit.jupiter:junit-jupiter") |     testImplementation("org.junit.jupiter:junit-jupiter") | ||||||
|     testRuntimeOnly("org.junit.platform:junit-platform-launcher") |     testRuntimeOnly("org.junit.platform:junit-platform-launcher") | ||||||
|  | 
 | ||||||
|  |     testImplementation(kotlin("test")) | ||||||
|  |     implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.9.0") | ||||||
|  |     implementation(kotlin("reflect")) | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | kotlin { | ||||||
|  |     jvmToolchain(24) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| tasks.test { | tasks.test { | ||||||
|     useJUnitPlatform() |     useJUnitPlatform() | ||||||
| } | } | ||||||
|  | project.layout.buildDirectory.set(file("../build")) | ||||||
							
								
								
									
										1
									
								
								plt-build/settings.gradle.kts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								plt-build/settings.gradle.kts
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | |||||||
|  | rootProject.name = "plt-build" | ||||||
| @ -1,3 +1,3 @@ | |||||||
| module plt-updated | module plt-server | ||||||
| 
 | 
 | ||||||
| go 1.24 | go 1.24 | ||||||
|  | |||||||
| @ -1,7 +1,3 @@ | |||||||
| plugins { |  | ||||||
|     id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0" |  | ||||||
| } |  | ||||||
| rootProject.name = "planterette" |  | ||||||
| include("plt-build") | include("plt-build") | ||||||
| include("plt-build-wrapper") | include("plt-build-wrapper") | ||||||
| include("plt-fetch") | include("plt-fetch") | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user