Compare commits
5 Commits
751b999d5b
...
78d651f323
Author | SHA1 | Date | |
---|---|---|---|
|
78d651f323 | ||
|
1e7f52ba4a | ||
f3888cee71 | |||
|
62fa81c7c6 | ||
|
157c512c0c |
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@ -44,7 +44,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Download artifact
|
- name: Download artifact
|
||||||
uses: actions/download-artifact@v3.0.2
|
uses: actions/download-artifact@v4.1.0
|
||||||
with:
|
with:
|
||||||
# Artifact name
|
# Artifact name
|
||||||
name: claptrap_jar
|
name: claptrap_jar
|
||||||
|
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@ -42,7 +42,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Download artifact
|
- name: Download artifact
|
||||||
uses: actions/download-artifact@v3.0.2
|
uses: actions/download-artifact@v4.1.0
|
||||||
with:
|
with:
|
||||||
# Artifact name
|
# Artifact name
|
||||||
name: claptrap_jar
|
name: claptrap_jar
|
||||||
|
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
@ -2,6 +2,6 @@
|
|||||||
"java.configuration.updateBuildConfiguration": "automatic",
|
"java.configuration.updateBuildConfiguration": "automatic",
|
||||||
"java.compile.nullAnalysis.mode": "disabled",
|
"java.compile.nullAnalysis.mode": "disabled",
|
||||||
"editor.codeActionsOnSave": {
|
"editor.codeActionsOnSave": {
|
||||||
"source.organizeImports": true
|
"source.organizeImports": "explicit"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
FROM openjdk:18.0.1
|
FROM openjdk:21
|
||||||
WORKDIR /bot_src
|
WORKDIR /bot_src
|
||||||
ARG BUILD_NBR
|
ARG BUILD_NBR
|
||||||
ARG BRANCH_NAME
|
ARG BRANCH_NAME
|
||||||
|
@ -1,16 +0,0 @@
|
|||||||
package net.Broken.Api.Security;
|
|
||||||
|
|
||||||
import net.Broken.Api.Security.Expression.CustomMethodSecurityExpressionHandler;
|
|
||||||
import org.springframework.context.annotation.Configuration;
|
|
||||||
import org.springframework.security.access.expression.method.MethodSecurityExpressionHandler;
|
|
||||||
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
|
|
||||||
import org.springframework.security.config.annotation.method.configuration.GlobalMethodSecurityConfiguration;
|
|
||||||
|
|
||||||
@Configuration
|
|
||||||
@EnableGlobalMethodSecurity(prePostEnabled = true)
|
|
||||||
public class MethodSecurityConfig extends GlobalMethodSecurityConfiguration {
|
|
||||||
@Override
|
|
||||||
protected MethodSecurityExpressionHandler createExpressionHandler() {
|
|
||||||
return new CustomMethodSecurityExpressionHandler();
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,6 +1,7 @@
|
|||||||
package net.Broken;
|
package net.Broken;
|
||||||
|
|
||||||
import net.dv8tion.jda.api.JDA;
|
import java.util.HashMap;
|
||||||
|
|
||||||
import org.apache.logging.log4j.LogManager;
|
import org.apache.logging.log4j.LogManager;
|
||||||
import org.apache.logging.log4j.Logger;
|
import org.apache.logging.log4j.Logger;
|
||||||
import org.springframework.boot.SpringApplication;
|
import org.springframework.boot.SpringApplication;
|
||||||
@ -10,9 +11,8 @@ import org.springframework.context.ConfigurableApplicationContext;
|
|||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
|
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
|
||||||
import org.springframework.core.io.ClassPathResource;
|
import org.springframework.core.io.ClassPathResource;
|
||||||
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
|
|
||||||
|
|
||||||
import java.util.HashMap;
|
import net.dv8tion.jda.api.JDA;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Main Class
|
* Main Class
|
||||||
|
Loading…
Reference in New Issue
Block a user