-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat($auth-center): successfully migrate to Gradle 7.5
- Loading branch information
1 parent
9382504
commit b4236cf
Showing
78 changed files
with
240 additions
and
1,070 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1 @@ | ||
/* | ||
* This file was generated by the Gradle 'init' task. | ||
*/ | ||
|
||
description = "Muscle and Fitness Server :: API Gateway - Infra" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,39 @@ | ||
@file:Suppress("UnstableApiUsage") | ||
|
||
import org.springframework.boot.gradle.tasks.bundling.BootJar | ||
import org.springframework.boot.gradle.tasks.run.BootRun | ||
|
||
description = "Muscle and Fitness Server :: Auth Center - Bootstrap" | ||
|
||
val projectGroupId: String by project | ||
group = projectGroupId | ||
val projectVersion: String by project | ||
version = projectVersion | ||
tasks.withType<BootJar> { | ||
this.enabled = true | ||
} | ||
|
||
springBoot { | ||
buildInfo() | ||
} | ||
|
||
tasks.withType<BootRun> { | ||
if (project.hasProperty("jvmArgs")) { | ||
val jvmArgsProperty = (project.properties["jvmArgs"] as String) | ||
logger.info("jvmArgsProperty for the app [${project.name}] (before split): `$jvmArgsProperty`") | ||
jvmArgs = jvmArgsProperty.split(Regex("\\s+")) | ||
logger.info("allJvmArgs for the app [${project.name}] (after split): $allJvmArgs") | ||
} | ||
} | ||
|
||
plugins { | ||
kotlin("jvm") | ||
kotlin("plugin.spring") | ||
id("org.springframework.boot") apply true | ||
// https://www.baeldung.com/spring-boot-auto-property-expansion | ||
// https://github.com/gradle/kotlin-dsl-samples/blob/master/samples/copy/build.gradle.kts | ||
// https://www.tristanfarmer.dev/blog/gradle_property_expansion_spring_boot | ||
tasks.withType<ProcessResources> { | ||
// Only expand the file `application.yml` | ||
filesMatching("**/application.yml") { | ||
expand(project.properties) | ||
} | ||
} | ||
|
||
dependencies { | ||
// MAF dependencies | ||
implementation(project(":spring-cloud-starter")) | ||
implementation(project(":universal-ui")) | ||
// MAF dependencies, and the dependencies in `bootstrap` have no need to be transitive | ||
implementation(project(":auth-center-web")) | ||
implementation(project(":auth-center-message")) | ||
|
||
// Spring Dependencies | ||
implementation("org.springframework.boot:spring-boot-starter-data-redis") | ||
implementation("org.springframework.boot:spring-boot-starter-data-elasticsearch") | ||
implementation("org.springframework.boot:spring-boot-starter-amqp") | ||
implementation("org.springframework.boot:spring-boot-starter-quartz") | ||
implementation("org.springframework.boot:spring-boot-starter-websocket") | ||
implementation("org.springframework.boot:spring-boot-starter-reactor-netty") | ||
implementation("org.springframework:spring-test") | ||
|
||
// Spring Integration | ||
implementation("org.springframework.integration:spring-integration-redis") | ||
|
||
// ORM Libraries | ||
// runtimeOnly libraries are the opposite, they are available at runtime but not at compile-time. | ||
runtimeOnly("mysql:mysql-connector-java") | ||
val mybatisPlusBootStarterVersion: String by project | ||
implementation("com.baomidou:mybatis-plus-boot-starter:$mybatisPlusBootStarterVersion") | ||
val shardingsphereVersion: String by project | ||
implementation("org.apache.shardingsphere:shardingsphere-jdbc-core-spring-boot-starter:$shardingsphereVersion") | ||
|
||
// JWT, https://github.com/jwtk/jjwt | ||
// Cannot Remove jjwt dependencies, cuz the login process is in here `auth-center`, and the auth process is in `api-gateway` | ||
val jjwtVersion: String by project | ||
implementation("io.jsonwebtoken:jjwt-api:$jjwtVersion") | ||
runtimeOnly("io.jsonwebtoken:jjwt-impl:$jjwtVersion") | ||
runtimeOnly("io.jsonwebtoken:jjwt-jackson:$jjwtVersion") | ||
|
||
// Apache POI - Java API To Access Microsoft Format Files | ||
val poiVersion: String by project | ||
runtimeOnly("org.apache.poi:poi:$poiVersion") | ||
runtimeOnly("org.apache.poi:poi-ooxml:$poiVersion") | ||
|
||
|
||
// Testing | ||
testImplementation("org.springframework.amqp:spring-rabbit-test") | ||
testImplementation("org.mockito:mockito-inline") | ||
|
||
implementation(project(":auth-center-domain")) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.