Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Praper for Virtual Thread in Java 21 (Gradle) #215

Merged
merged 218 commits into from
May 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
218 commits
Select commit Hold shift + click to select a range
aa0f636
Init for dev_3.x with Java 19
lWoHvYe Sep 20, 2022
d7c76f7
Trigger a Build Error
lWoHvYe Sep 20, 2022
883efb8
ReBuild lombok to Support Java 19 (Just Snapshot)
lWoHvYe Sep 21, 2022
82047bf
1. 显而易见,只要Runtime满足,lowerVersion can Call HigherVersion (Starter-18 c…
lWoHvYe Sep 22, 2022
93356c9
部分IO密集型业务,比如方法内多次SearchDB且无严格顺序,则可以用Virtual Threads来优化。虽然代码量变多了
lWoHvYe Sep 22, 2022
b77e327
Upgrade Spring Boot to 2.7.4
lWoHvYe Sep 27, 2022
81f11cd
Use auto-service to gen META-INF/services/xxx for SPI(ServiceLoader)
lWoHvYe Oct 1, 2022
1790c42
Try Virtual Thread Pool
lWoHvYe Oct 4, 2022
ba1add8
Virtual Threads 不需要池化,但使用Pool一方面可以兼容旧的API,另一方面也可以对Thread统一的进行命名
lWoHvYe Oct 9, 2022
d84c7b8
Update ASM(In lombok) to 9.4 to Support Java 19 & 20
lWoHvYe Oct 12, 2022
a31f75d
Spring 6.x & Spring Boot 3.x Will Support Virtual Threads
lWoHvYe Oct 13, 2022
4a3ef6a
Erysimum amurense Kitagawa
lWoHvYe Oct 16, 2022
3239378
@Value bind map & list
dependabot[bot] Oct 18, 2022
13f3b04
Update dependency
lWoHvYe Oct 23, 2022
ae77f3f
Simple diff for use @Value to Inject map
lWoHvYe Oct 24, 2022
538a745
remove reactive-starter
lWoHvYe Oct 24, 2022
5ed6777
remove undertow in unicorn-reactive
lWoHvYe Oct 24, 2022
61a1b3f
Simple use of @PropertySource, see https://www.lwohvye.com/2022/10/26…
lWoHvYe Oct 27, 2022
db75ecc
花神诞祭
lWoHvYe Oct 27, 2022
fe32189
true | false
lWoHvYe Nov 3, 2022
e3409f1
F: Test SpringBoot 3.0, Simple with issues
lWoHvYe Nov 12, 2022
4427cfa
comment unused code
lWoHvYe Nov 12, 2022
aab8a49
Change the dependency of captcha to support Boot 3.0, while publish t…
lWoHvYe Nov 13, 2022
41bff81
swagger is ready
lWoHvYe Nov 13, 2022
f3e1ecb
SpringSecurity is ready 🎉🎉
lWoHvYe Nov 13, 2022
95e9fa9
redisson works well with boot3.0 after a bit changes
lWoHvYe Nov 19, 2022
c209803
remove ex-lib
lWoHvYe Nov 21, 2022
a521c7c
update dependency
lWoHvYe Nov 21, 2022
ac08dba
Merge branch 'main' into integrate-boot3.0-dev
lWoHvYe Nov 21, 2022
4ae9f97
#174 Ready for boot 3.0 & framework 6.0.2
lWoHvYe Nov 24, 2022
b074ce7
#174 Spring Boot is GA
lWoHvYe Nov 24, 2022
783c981
#176 OpenAPI is released
lWoHvYe Nov 25, 2022
e4251c7
1.remove deprecated query-anno `EQUAL_IN_MULTI_JOIN`
lWoHvYe Nov 26, 2022
3bb64ac
reset redisson to 3.18.0, wtf new release to support boot 3.0
lWoHvYe Nov 26, 2022
eed3f31
fixup! 1.remove deprecated query-anno `EQUAL_IN_MULTI_JOIN` 2.add cas…
lWoHvYe Nov 26, 2022
58bd1aa
try sync up with main branch
lWoHvYe Nov 29, 2022
67c0031
fixup! try sync up with main branch
lWoHvYe Nov 29, 2022
4210541
swatch webContainer to Tomcat. try Virtual-Threads on Spring Application
lWoHvYe Nov 29, 2022
39c6273
remove use of kotlin
lWoHvYe Nov 29, 2022
cb7309b
fixup! swatch webContainer to Tomcat. try Virtual-Threads on Spring A…
lWoHvYe Nov 29, 2022
154c9c6
Pressure Test with VT
lWoHvYe Nov 30, 2022
e689193
Config AutoConfigExclude in property
lWoHvYe Nov 30, 2022
368cccb
remove deprecated class
lWoHvYe Dec 1, 2022
df7d04c
spring-boot:build-image
lWoHvYe Dec 2, 2022
cb69959
snapshot: try to use custom lombok-package
lWoHvYe Dec 3, 2022
e8637e5
Revert "snapshot: try to use custom lombok-package"
lWoHvYe Dec 3, 2022
7a1a66b
change cos to s3. fixed mail issue
lWoHvYe Dec 4, 2022
c713793
update img build config
lWoHvYe Dec 4, 2022
1f3bb2b
苟利国家生死以,岂因祸福避趋之
lWoHvYe Dec 6, 2022
f9adc84
add custom jar to env
lWoHvYe Dec 8, 2022
decd8b0
fixup! add custom jar to env
lWoHvYe Dec 8, 2022
236dbfd
fixup! change structure
lWoHvYe Dec 9, 2022
8675fd8
remove unused method in BassMapper
lWoHvYe Dec 9, 2022
d6e1fb2
adjust project structure
lWoHvYe Dec 10, 2022
1648564
adjust project structure
lWoHvYe Dec 11, 2022
8178294
fixed issue of role query
lWoHvYe Dec 11, 2022
4d3fe10
change captcha to optional
lWoHvYe Dec 12, 2022
8ab156b
change project structure
lWoHvYe Dec 13, 2022
e42f54d
Merge branch 'main' into dev_3.x
lWoHvYe Dec 13, 2022
5ec2162
main Threads, normal Threads, CarrierThreads & VirtualThreads
lWoHvYe Dec 13, 2022
6850329
swatch to gradle
lWoHvYe Dec 13, 2022
8d744a0
completed starter
lWoHvYe Dec 13, 2022
9456a0c
Merge branch 'main' into dev_3.x
lWoHvYe Dec 13, 2022
43fd2f7
draft
lWoHvYe Dec 14, 2022
83f99e6
support modify module-info.java
lWoHvYe Dec 14, 2022
f20d72a
gradle don't need to open module resources while maven needed
lWoHvYe Dec 14, 2022
b90b0d6
try build image
lWoHvYe Dec 14, 2022
1968b5c
gradle feature - draft
lWoHvYe Dec 15, 2022
97b837c
remove docker-image.yml
lWoHvYe Dec 15, 2022
b1d047b
packaged ( 使用的jar是modify之后的,所以不必担心develop时对jar做了enhance,pkg后run不起来的is…
lWoHvYe Dec 16, 2022
8ffcd1a
fixed issue
lWoHvYe Dec 16, 2022
4d57e70
Bump springdoc.openapi.version from 2.0.0 to 2.0.2
lWoHvYe Dec 17, 2022
ab45ef3
add Manifest
lWoHvYe Dec 20, 2022
de35518
try config Nexus OSSRH
lWoHvYe Dec 21, 2022
4cf690b
fixup! try config Nexus OSSRH
lWoHvYe Dec 21, 2022
196aa41
boring enterprisy thinking
lWoHvYe Dec 22, 2022
883c5fb
draft signing root.artifacts
lWoHvYe Dec 22, 2022
ed6b31b
try use Encrypted secrets
lWoHvYe Dec 22, 2022
13a0955
fixup! try use Encrypted secrets (#3)
lWoHvYe Dec 22, 2022
99f1cc5
draft sign artifacts
lWoHvYe Dec 25, 2022
c95be91
update module names
lWoHvYe Dec 26, 2022
024bc82
for gradle feature_variants
lWoHvYe Dec 26, 2022
d809183
sync up
lWoHvYe Dec 26, 2022
f2b8747
Merge branch 'lWoHvYe-dev_3.x' into dev_3.x
lWoHvYe Dec 26, 2022
3482ae5
Create gradle-publish.yml
lWoHvYe Dec 22, 2022
3ea2b50
Bump gradle/gradle-build-action from 2.2.1 to 2.3.3 (#4)
dependabot[bot] Dec 25, 2022
e87c39e
OSSRH SNAPSHOT publish
lWoHvYe Dec 26, 2022
fe82523
try fixup
lWoHvYe Dec 26, 2022
cf98364
try fixup
lWoHvYe Dec 26, 2022
1a67aa2
try fixup
lWoHvYe Dec 26, 2022
dd7717a
try fixup
lWoHvYe Dec 26, 2022
2a57e43
todo: LambdaMetafactory & CallSite
lWoHvYe Dec 29, 2022
b44c8b4
switch to org.gradlex:extra-java-module-info
lWoHvYe Dec 30, 2022
0a9978b
specific extra-repo for buildscript
lWoHvYe Dec 30, 2022
a70571f
Merge pull request #193 from WHY-lWoHvYe/dev_3.x
lWoHvYe Dec 30, 2022
891583c
win-win
lWoHvYe Dec 31, 2022
c9374f1
Merge branch 'lWoHvYe:dev_3.x' into dev_3.x
lWoHvYe Dec 31, 2022
5e5bc6e
win-win
lWoHvYe Dec 31, 2022
e8c0cf4
Merge branch 'lWoHvYe:dev_3.x' into dev_3.x
lWoHvYe Dec 31, 2022
5b0f890
win-win update Copyright
lWoHvYe Jan 1, 2023
7743ac7
try gradle scan
lWoHvYe Jan 1, 2023
f1097f1
update SpringContextHolder
lWoHvYe Jan 1, 2023
c103ae3
Merge pull request #196 from WHY-lWoHvYe/dev_3.x
lWoHvYe Jan 1, 2023
6085179
dev_3.x_pipeline
lWoHvYe Jan 2, 2023
752de76
try GraalVM Native Images
lWoHvYe Jan 5, 2023
eb64ab9
fixup! try GraalVM Native Images
lWoHvYe Jan 5, 2023
aadf5d7
try fixup! (#6)
lWoHvYe Jan 7, 2023
9f43b56
Update gradle.properties
lWoHvYe Jan 16, 2023
c358256
kotlin & loom
lWoHvYe Jan 21, 2023
4fa3fc3
coroutines & loom patch 1.draft
lWoHvYe Jan 22, 2023
1f09f9f
Loom can work as carrier thread for coroutines.
lWoHvYe Jan 22, 2023
91645a6
update dependency
lWoHvYe Jan 24, 2023
75dca86
Merge branch 'lWoHvYe:dev_3.x' into dev_3.x
lWoHvYe Jan 26, 2023
6c35a90
Valhalla
lWoHvYe Jan 26, 2023
9598ce5
Modify Structure
lWoHvYe Jan 26, 2023
567665b
fixup! Modify Structure (#7)
lWoHvYe Jan 26, 2023
d659c95
Merge pull request #202 from WHY-lWoHvYe/dev_3.x
lWoHvYe Jan 26, 2023
ff1c95b
fixed issue (can't start up)
lWoHvYe Jan 31, 2023
d2bc32b
Official lombok for JDK 19 is release
lWoHvYe Feb 5, 2023
42ca5d6
Merge pull request #203 from WHY-lWoHvYe/dev_3.x
lWoHvYe Feb 5, 2023
daf248c
seems kotlin (coroutines) is not fully support jigsaw yet
lWoHvYe Feb 7, 2023
8ef5876
try use oracle
lWoHvYe Feb 8, 2023
c88b64c
mapstruct-spring-extensions seems unused
lWoHvYe Feb 10, 2023
1d459ee
we can confirm that we don't need mapstruct-spring-extensions in our …
lWoHvYe Feb 10, 2023
2ff57c5
update auto-module-name
lWoHvYe Feb 11, 2023
d7fb7d6
change publish plugin
lWoHvYe Feb 14, 2023
03777f7
- fixed javadoc issue
lWoHvYe Feb 16, 2023
710a934
`@snippet : ` 冒号别忘了
lWoHvYe Feb 16, 2023
c3cad28
update configure structure
lWoHvYe Feb 17, 2023
294feaa
MethodHandle,注意对可变参数的传递可能会导致问题
lWoHvYe Feb 22, 2023
75f5e61
Bump gradle/gradle-build-action from 2.3.3 to 2.4.0 (#8)
dependabot[bot] Feb 22, 2023
155ae8a
Clarify the reason of pre-commit
lWoHvYe Feb 22, 2023
a045046
try LambdaMetafactory
lWoHvYe Feb 23, 2023
ba391a4
如果能函数复用,则LambdaMetafactory会有比较大的优势,不然是完全不及findVirtual的,具体看随附的UT
lWoHvYe Feb 24, 2023
5e324e9
format name
lWoHvYe Feb 24, 2023
90d1a31
alpha -> beta
lWoHvYe Feb 24, 2023
ef81ff3
try fixed publish issue
lWoHvYe Feb 25, 2023
fe7ca08
update for merge
lWoHvYe Feb 27, 2023
116f23e
spring-boot-starter-webflux 3.0.3/spring framework 6.0.5 has split pa…
lWoHvYe Mar 2, 2023
72a5513
local build
lWoHvYe Mar 2, 2023
3776178
Merge remote-tracking branch 'origin/dev_3.x' into delta-oauth20
lWoHvYe Mar 2, 2023
b1c0c2d
Thanks JetBrains license for non-commercial open source projects.
lWoHvYe Mar 3, 2023
41b2361
try fixed
lWoHvYe Mar 3, 2023
5dbca8c
try multi branches
lWoHvYe Mar 3, 2023
6dc9a1a
Merge remote-tracking branch 'origin/main' into delta-oauth2.0
lWoHvYe Mar 3, 2023
6154234
try fixed
lWoHvYe Mar 4, 2023
f338d7e
try fixed
lWoHvYe Mar 4, 2023
e47d090
try fixed
lWoHvYe Mar 4, 2023
12946a1
Merge remote-tracking branch 'rm-fork/main'
lWoHvYe Mar 4, 2023
f0c7cd6
Revert: fix native-build in spring-boot 3.0.3/spring framework 6.0.5 …
lWoHvYe Mar 4, 2023
fe8d8f2
upgrade Spring Boot Version
lWoHvYe Mar 7, 2023
7c64fea
Scoped Values in Java 20
lWoHvYe Mar 8, 2023
4de7bd9
upgrade dependency
lWoHvYe Mar 9, 2023
5636b62
Merge remote-tracking branch 'origin/main' into delta-oauth2.0
lWoHvYe Mar 9, 2023
b0a1877
try Scoped Values in Java 20
lWoHvYe Mar 9, 2023
d1617b6
update configure structure
lWoHvYe Mar 12, 2023
2e79d53
update workflow
lWoHvYe Mar 16, 2023
ee1b6ec
fixup! update workflow
lWoHvYe Mar 16, 2023
95b4d29
gamma with Java 20
lWoHvYe Mar 18, 2023
8a80849
coroutines 1.7.0-Beta 若DeBug会报错: module kotlin.stdlib does not read m…
lWoHvYe Mar 18, 2023
ddfbc85
gamma -> delta \r\n delta is coming
lWoHvYe Mar 18, 2023
cdbef8f
trigger build
lWoHvYe Mar 21, 2023
b13e9b8
oauth2.0 in legacy version
lWoHvYe Mar 22, 2023
5d68e73
rename
lWoHvYe Mar 23, 2023
8021b45
oauth2.0 distributed module in legacy version
lWoHvYe Mar 23, 2023
4300804
rename
lWoHvYe Mar 23, 2023
0148eed
[#217] Official AuthorizationServer
lWoHvYe Mar 23, 2023
557d2cd
[#217] combine legacy oauth2 module
lWoHvYe Mar 24, 2023
ef30eb3
[#217] Formalization
lWoHvYe Mar 24, 2023
9ac58a7
跑通sample只是第一步
lWoHvYe Mar 24, 2023
bf3f6e2
add some docs
lWoHvYe Mar 25, 2023
012ed8a
add confirm consent
lWoHvYe Mar 26, 2023
3aa64b3
simply disable kotlin, wtf support Java 20
lWoHvYe Mar 26, 2023
825b32f
try fix
lWoHvYe Mar 26, 2023
e1410c5
try fix, docker issue will need bellsoft-liberica/GraalVM suport Java…
lWoHvYe Mar 26, 2023
3af3ba1
try fixed
lWoHvYe Mar 26, 2023
879939e
prepare for Java 21, lombok side
lWoHvYe Mar 27, 2023
2094158
daily update
lWoHvYe Mar 28, 2023
989b24d
id_token
lWoHvYe Mar 28, 2023
b763583
separate module to try kotlin
lWoHvYe Mar 29, 2023
fdeadc2
[#217] draft gateway
lWoHvYe Mar 31, 2023
86dce30
[#217] still have issue with Authority, seems just validate token not…
lWoHvYe Apr 1, 2023
0e971ec
不使用Gateway时,client会自动维护token及refresh,使用后经Gateway的部分还有各种问题
lWoHvYe Apr 2, 2023
b62e36e
draft try kotlin 1.8.20
lWoHvYe Apr 4, 2023
b6420a7
draft 2.0
lWoHvYe Apr 5, 2023
bbb459b
draft 2.1
lWoHvYe Apr 5, 2023
e23938c
draft 2.2 revert kotlin
lWoHvYe Apr 5, 2023
898c278
fixup! 不使用Gateway时,client会自动维护token及refresh,使用后经Gateway的部分需要自己维护Token
lWoHvYe Apr 5, 2023
64311a6
draft simple integrate with core
lWoHvYe Apr 5, 2023
63455bd
delta is gone, epsilon is coming
lWoHvYe Apr 5, 2023
86da65b
clarify sth of oauth2.0
lWoHvYe Apr 5, 2023
6d5595b
Implement core Authorization Services with JPA
lWoHvYe Apr 5, 2023
f2bb3d7
Tomcat with loom - for independent services
lWoHvYe Apr 8, 2023
659bcdb
[#217] Authorization Server: use User from db, which is managed by Se…
lWoHvYe Apr 10, 2023
be6c22b
simple cacheable
lWoHvYe Apr 11, 2023
261da64
currently can only run with unnamed module
lWoHvYe Apr 11, 2023
217ef99
fail to run with named module.
lWoHvYe Apr 14, 2023
48d52b1
Merge remote-tracking branch 'rm-fork/main'
lWoHvYe Apr 14, 2023
92f8284
在 ChatGPT 协助下弄明白了一些协程的问题
lWoHvYe Apr 14, 2023
ba17215
fixed issue with dependabot
lWoHvYe Apr 14, 2023
28cda94
Bump actions/stale from 7 to 8 (#9)
dependabot[bot] Apr 15, 2023
87410ba
Bump com.gradle.enterprise from 3.12.5 to 3.13 (#10)
dependabot[bot] Apr 15, 2023
d41f2a6
Bump io.github.gradle-nexus.publish-plugin from 1.2.0 to 1.3.0 (#11)
dependabot[bot] Apr 15, 2023
ced6cd2
now comes zeta
lWoHvYe Apr 15, 2023
5ec30f6
coroutines 1.7.0-RC
lWoHvYe Apr 22, 2023
abb8a30
seems that dependabot is not support update version in gradle.properties
lWoHvYe Apr 25, 2023
cba6588
remove archive module
lWoHvYe Apr 25, 2023
cd903a0
蒸馍,你不扶器?
lWoHvYe Apr 28, 2023
a73daec
try exclude starter-module
lWoHvYe Apr 30, 2023
a5fd973
God Save The King!
lWoHvYe May 6, 2023
81243a9
try versionCatalogs
lWoHvYe May 7, 2023
21e7941
又菜又爱玩,还好大喜功
lWoHvYe May 11, 2023
571ef47
突然又能正常gradle run了,很奇怪
lWoHvYe May 12, 2023
524ec60
optional SSL CN verify
lWoHvYe May 13, 2023
26dd32c
4 revert: disable kotlin
lWoHvYe May 13, 2023
83d3c14
Merge remote-tracking branch 'rm-fork/main' into dev_3.x
lWoHvYe May 13, 2023
9b1c7c1
try fixed
lWoHvYe May 13, 2023
bb7bae9
try fixed
lWoHvYe May 13, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .fleet/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"backend.maxHeapSizeMb": 1024
}
4 changes: 1 addition & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ updates:
schedule:
interval: "daily"
# Maintain dependencies for maven
- package-ecosystem: "maven" # See documentation for possible values
- package-ecosystem: "gradle" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "daily"
Expand All @@ -25,8 +25,6 @@ updates:
# For AWS SDK, ignore all patch updates
# - dependency-name: "aws-sdk"
# update-types: ["version-update:semver-patch"]
- dependency-name: "com.aliyun.oss:aliyun-sdk-oss"
- dependency-name: "com.aliyun:dysmsapi20170525"
- dependency-name: "net.dreamlu:mica-ip2region"
- dependency-name: "com.github.oshi:oshi-core"
- dependency-name: "nl.basjes.parse.useragent:yauaa"
Expand Down
140 changes: 79 additions & 61 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ name: "CodeQL"

on:
push:
branches: [ main ]
branches: [ main, dev_3.x, delta-oauth2.0 ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ main ]
branches: [ main, dev_3.x ]
schedule:
- cron: '18 2 * * 2'

Expand All @@ -37,68 +37,86 @@ jobs:
# Learn more about CodeQL language support at https://git.io/codeql-language-support

steps:
- name: Checkout repository
uses: actions/checkout@v3
# see: https://github.com/marketplace/actions/setup-java-jdk
- name: Setup Java JDK
uses: actions/setup-java@v3.10.0
with:
# The Java version to set up. Takes a whole or semver Java version. See examples of supported syntax in README file
java-version: '20'
# Java distribution. See the list of supported distributions in README file
distribution: 'oracle'
# The package type (jdk, jre, jdk+fx, jre+fx)
#java-package: # optional, default is jdk
# The architecture of the package
#architecture: # optional, default is x64
# Path to where the compressed JDK is located
#jdkFile: # optional
# Set this option if you want the action to check for the latest available version that satisfies the version spec
check-latest: true # optional
# ID of the distributionManagement repository in the pom.xml file. Default is `github`
#server-id: # optional, default is github
# Environment variable name for the username for authentication to the Apache Maven repository. Default is $GITHUB_ACTOR
#server-username: # optional, default is GITHUB_ACTOR
# Environment variable name for password or token for authentication to the Apache Maven repository. Default is $GITHUB_TOKEN
#server-password: # optional, default is GITHUB_TOKEN
# Path to where the settings.xml file will be written. Default is ~/.m2.
#settings-path: # optional
# Overwrite the settings.xml file if it exists. Default is "true".
#overwrite-settings: # optional, default is true
# GPG private key to import. Default is empty string.
#gpg-private-key: # optional
# Environment variable name for the GPG private key passphrase. Default is $GPG_PASSPHRASE.
#gpg-passphrase: # optional
# Name of the build platform to cache dependencies. It can be "maven" or "gradle".
#cache: 'maven' # optional
# Workaround to pass job status to post job step. This variable is not intended for manual setting
#job-status: # optional, default is ${{ job.status }}
- name: Checkout repository
uses: actions/checkout@v3
# see: https://github.com/marketplace/actions/setup-java-jdk
- name: Setup Java JDK
uses: actions/setup-java@v3
with:
# The Java version to set up. Takes a whole or semver Java version. See examples of supported syntax in README file
java-version: '20'
# Java distribution. See the list of supported distributions in README file
distribution: 'oracle'
# The package type (jdk, jre, jdk+fx, jre+fx)
#java-package: # optional, default is jdk
# The architecture of the package
#architecture: # optional, default is x64
# Path to where the compressed JDK is located
#jdkFile: # optional
# Set this option if you want the action to check for the latest available version that satisfies the version spec
check-latest: true # optional
# ID of the distributionManagement repository in the pom.xml file. Default is `github`
#server-id: # optional, default is github
# Environment variable name for the username for authentication to the Apache Maven repository. Default is $GITHUB_ACTOR
#server-username: # optional, default is GITHUB_ACTOR
# Environment variable name for password or token for authentication to the Apache Maven repository. Default is $GITHUB_TOKEN
#server-password: # optional, default is GITHUB_TOKEN
# Path to where the settings.xml file will be written. Default is ~/.m2.
#settings-path: # optional
# Overwrite the settings.xml file if it exists. Default is "true".
#overwrite-settings: # optional, default is true
# GPG private key to import. Default is empty string.
#gpg-private-key: # optional
# Environment variable name for the GPG private key passphrase. Default is $GPG_PASSPHRASE.
#gpg-passphrase: # optional
# Name of the build platform to cache dependencies. It can be "maven" or "gradle".
#cache: 'maven' # optional
# Workaround to pass job status to post job step. This variable is not intended for manual setting
#job-status: # optional, default is ${{ job.status }}

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
# This means your workflow will download the latest stable CodeQL version instead of using the cache.
# tools: latest
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release
#- run: |
# make bootstrap
# make release
- name: Publish 2 MavenLocal
uses: gradle/gradle-build-action@v2.4.2
with:
arguments: publishToMavenLocal

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
# - name: Build OAuth2.0 Module
# uses: gradle/gradle-build-action@v2
# with:
# arguments: build
# build-root-directory: unicorn-oauth2

# - name: Build Unicorn-Starter
# run: mvn -B package --file unicorn-starter/pom.xml -P jigsaw

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
29 changes: 12 additions & 17 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Docker Image CI

on:
push:
branches: [ "main" ]
branches: [ "main", "dev_3.x", "delta-oauth2.0" ]
pull_request:
branches: [ "main" ]
branches: [ "main", "dev_3.x" ]

jobs:
build:
Expand All @@ -21,23 +21,18 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Java JDK
uses: actions/setup-java@v3.10.0
uses: actions/setup-java@v3
with:
java-version: '20'
distribution: 'oracle'
check-latest: true
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file

- name: Build Core
run: mvn -B install --file pom.xml
# - name: Build Valentine's Day
# run: mvn -B package --file valentine-starter/pom.xml
- name: Switch to unnamed module
run: rm -rf valentine-starter/src/main/java/module-info.java
- name: Build GraalVM Native image
run: mvn -B spring-boot:build-image --file valentine-starter/pom.xml -P prod,native
- name: Build Unicorn-Starter
run: mvn -B package --file unicorn-starter/pom.xml -P prod

# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
# - name: Update dependency graph
# uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6
- name: Build with Gradle
uses: gradle/gradle-build-action@v2.4.2
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
with:
arguments: bootBuildImage
45 changes: 45 additions & 0 deletions .github/workflows/gradle-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a package using Gradle and then publish it to GitHub packages when a release is created
# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#Publishing-using-gradle

name: Gradle Package

on:
release:
types: [ created ]

jobs:
build:

runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- uses: actions/checkout@v3
- name: Set up JDK 20
uses: actions/setup-java@v3
with:
java-version: '20'
distribution: 'temurin'
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file

- name: Build with Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: build

# The USERNAME and TOKEN need to correspond to the credentials environment variables used in
# the publishing section of your build.gradle
- name: Publish to GitHub Packages
uses: gradle/gradle-build-action@v2.4.2
with:
arguments: publishAllPublicationsToGitHubPackagesRepository
env:
USERNAME: ${{ github.actor }}
TOKEN: ${{ secrets.GITHUB_TOKEN }}
41 changes: 0 additions & 41 deletions .github/workflows/maven-publish.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
pull-requests: write

steps:
- uses: actions/stale@v7
- uses: actions/stale@v8
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'Stale issue message'
Expand Down
2 changes: 1 addition & 1 deletion .idea/copyright/Apache_2_0_License.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 10 additions & 2 deletions .idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/kotlinc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 4 additions & 9 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading