Skip to content

Commit

Permalink
move to gradle, 2024-03-11 12:14:36
Browse files Browse the repository at this point in the history
  • Loading branch information
yzqdev committed Mar 11, 2024
1 parent 7f367db commit 5282d37
Show file tree
Hide file tree
Showing 734 changed files with 2,718 additions and 924 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 10 additions & 0 deletions blog-sever/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
allprojects {
// 将构建文件统一输出到项目根目录下的 build 文件夹
layout.buildDirectory = File(rootDir, "build/${path.replace(':', '/')}")
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}
}



Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ jsoup = "org.jsoup:jsoup:1.16.1"

#dromara
#// https://mvnrepository.com/artifact/cn.hutool/hutool-all
hutool = 'cn.hutool:hutool-all:5.8.22'
hutool = 'cn.hutool:hutool-all:5.8.26'
satokenBoot = "cn.dev33:sa-token-spring-boot-starter:1.36.0"
satokenBoot3 = "cn.dev33:sa-token-spring-boot3-starter:1.37.0"
satokenRedis = "cn.dev33:sa-token-redis-jackson:1.37.0"
forestBoot = "com.dtflys.forest:forest-spring-boot-starter:1.5.33"
forestBoot = "com.dtflys.forest:forest-spring-boot-starter:1.5.36"
xfileStoreBoot="org.dromara.x-file-storage:x-file-storage-spring:2.0.0"
javaassist="org.javassist:javassist:3.29.2-GA"
lombokModule = { module = "org.projectlombok:lombok", version = "1.18.30" }
Expand Down Expand Up @@ -69,8 +69,9 @@ druidSpringboot = "com.alibaba:druid-spring-boot-starter:1.2.19"
mapstruct = "org.mapstruct:mapstruct:1.5.5.Final"
# https://mvnrepository.com/artifact/org.mapstruct/mapstruct-processor
mapstructAnno = "org.mapstruct:mapstruct-processor:1.5.5.Final"
javaJwt = "com.auth0:java-jwt:4.3.0"

javaJwt = "com.auth0:java-jwt:4.4.0"
pebble="io.pebbletemplates:pebble-spring-boot-starter:3.2.0"
imageCombiner="com.freewayso:image-combiner:2.6.5"
# https://mvnrepository.com/artifact/io.jsonwebtoken/jjwt-api
jjwtApi="io.jsonwebtoken:jjwt-api:0.12.3"

Expand Down Expand Up @@ -100,10 +101,10 @@ nettyAll="io.netty:netty-all:4.1.105.Final"
springDependency = { id = "io.spring.dependency-management", version = "1.1.4" }
springDependency2 = { id = "io.spring.dependency-management", version = "1.0.15.RELEASE" }
springboot2 = { id = "org.springframework.boot", version = "2.7.17" }
springboot = { id = "org.springframework.boot", version = "3.2.1" }
springboot = { id = "org.springframework.boot", version = "3.2.3" }
springPlugin = { id = "org.jetbrains.kotlin.plugin.spring", version.ref = "kotlin" }
shadowJar = { id = "com.github.johnrengelman.shadow", version = "8.1.1" }
ksp = { id = "com.google.devtools.ksp", version = "1.9.21-1.0.15" }
ksp = { id = "com.google.devtools.ksp", version = "1.9.22-1.0.17" }
jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
kapt = { id = "org.jetbrains.kotlin.kapt", version.ref = "kotlin" }
[bundles]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-all.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
64 changes: 64 additions & 0 deletions blog-sever/server-java/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@


plugins {
java
alias(libs.plugins.springboot)
alias(libs.plugins.springDependency)
// alias(libs.plugins.kapt)
// kotlin("jvm") version libs.versions.kotlin
// kotlin("plugin.spring") version libs.versions.kotlin
}

group = "com.site.blog"
version = "1.0.1"
java.sourceCompatibility = JavaVersion.VERSION_17

configurations {
compileOnly {
extendsFrom(configurations.annotationProcessor.get())
}
}


dependencies {
compileOnly ("org.projectlombok:lombok")
annotationProcessor ("org.projectlombok:lombok")
implementation("org.springframework.boot:spring-boot-starter-thymeleaf")
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.springframework.boot:spring-boot-starter-aop")
implementation("org.springframework.boot:spring-boot-starter-mail")

implementation("org.springframework.boot:spring-boot-starter-websocket")
implementation("org.springframework.boot:spring-boot-starter-quartz")


// https://mvnrepository.com/artifact/com.baomidou/mybatis-plus-boot-starter
implementation(libs.mybatisPlusBoot)
implementation(libs.pebble)
implementation(libs.bundles.utils)

// https://mvnrepository.com/artifact/com.alibaba/druid-spring-boot-starter
implementation(libs.druidSpringboot)
// https://mvnrepository.com/artifact/net.coobird/thumbnailator
implementation(libs.thumbnailator)

implementation(libs.bundles.commons)
// https://mvnrepository.com/artifact/com.freewayso/image-combiner
implementation(libs.imageCombiner)
// https://mvnrepository.com/artifact/com.dtflys.forest/forest-spring-boot-starter
implementation(libs.forestBoot)


implementation(libs.javaJwt)

runtimeOnly("org.postgresql:postgresql")
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor")

testImplementation("org.springframework.boot:spring-boot-starter-test")
}



tasks.withType<Test> {
useJUnitPlatform()
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
@MapperScan("com.site.blog.mapper")
@SpringBootApplication
//@ForestScan(basePackages = "com.site.blog.client")
public class BlogApp {
public class ServerJava {
public static void main(String[] args) {
SpringApplication.run(BlogApp.class, args);
SpringApplication.run(ServerJava.class, args);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
@ExtendWith({SpringExtension.class})

public class BlogAppTests {
public class ServerJavaTests {
@Resource
AdminUserService adminUserService;

Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
id("org.springframework.boot") version "3.1.0"
id("io.spring.dependency-management") version "1.1.0"
kotlin("jvm") version "1.8.22"
kotlin("plugin.spring") version "1.8.22"
alias(libs.plugins.springboot)
alias(libs.plugins.springDependency)
alias(libs.plugins.kapt)
kotlin("jvm") version libs.versions.kotlin
kotlin("plugin.spring") version libs.versions.kotlin
}

group = "com.site.blog"
Expand All @@ -19,8 +20,8 @@ configurations {


dependencies {
compileOnly ("org.projectlombok:lombok:1.18.24")
annotationProcessor ("org.projectlombok:lombok:1.18.24")
compileOnly ("org.projectlombok:lombok")
annotationProcessor ("org.projectlombok:lombok")
implementation("org.springframework.boot:spring-boot-starter-thymeleaf")
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.springframework.boot:spring-boot-starter-aop")
Expand All @@ -34,23 +35,21 @@ dependencies {
implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation("org.jetbrains.kotlin:kotlin-stdlib")

implementation("io.pebbletemplates:pebble-spring-boot-starter:3.2.0")
implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:2.0.2")
// https://mvnrepository.com/artifact/cn.hutool/hutool-all
implementation("cn.hutool:hutool-all:5.8.12")
implementation(libs.pebble)
implementation(libs.bundles.utils)

// https://mvnrepository.com/artifact/com.alibaba/druid-spring-boot-starter
implementation("com.alibaba:druid-spring-boot-starter:1.2.15")
// https://mvnrepository.com/artifact/net.coobird/thumbnailator
implementation("net.coobird:thumbnailator:0.4.17")
// https://mvnrepository.com/artifact/org.apache.commons/commons-text
implementation("org.apache.commons:commons-text:1.10.0")
implementation(libs.druidSpringboot)
implementation(libs.thumbnailator)

implementation(libs.bundles.commons)
// https://mvnrepository.com/artifact/com.freewayso/image-combiner
implementation("com.freewayso:image-combiner:2.3.7")
implementation(libs.imageCombiner)
// https://mvnrepository.com/artifact/com.dtflys.forest/forest-spring-boot-starter
implementation("com.dtflys.forest:forest-spring-boot-starter:1.5.28")
implementation(libs.forestBoot)


implementation("com.auth0:java-jwt:4.3.0")
implementation(libs.javaJwt)

runtimeOnly("org.postgresql:postgresql")
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
package com.site.blog

import com.dtflys.forest.springboot.annotation.ForestScan
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication

//@RepositoryScan("com.site.blog.mapper")
@SpringBootApplication
class BlogApp
class ServerJpa

fun main(args: Array<String>) {
runApplication<BlogApp>(*args)
runApplication<ServerJpa>(*args)
}
Loading

0 comments on commit 5282d37

Please sign in to comment.