Compare commits

..

2 Commits

Author SHA1 Message Date
renovate[bot]
751b999d5b
Merge 6bd25e8240 into 57b4583fd7 2023-12-14 21:36:23 +00:00
renovate[bot]
6bd25e8240
⬆️ Update actions/download-artifact action to v4 2023-12-14 21:36:21 +00:00
6 changed files with 23 additions and 7 deletions

View File

@ -44,7 +44,7 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Download artifact - name: Download artifact
uses: actions/download-artifact@v4.1.0 uses: actions/download-artifact@v4.0.0
with: with:
# Artifact name # Artifact name
name: claptrap_jar name: claptrap_jar

View File

@ -42,7 +42,7 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Download artifact - name: Download artifact
uses: actions/download-artifact@v4.1.0 uses: actions/download-artifact@v4.0.0
with: with:
# Artifact name # Artifact name
name: claptrap_jar name: claptrap_jar

View File

@ -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": "explicit" "source.organizeImports": true
} }
} }

View File

@ -1,4 +1,4 @@
FROM openjdk:21 FROM openjdk:18.0.1
WORKDIR /bot_src WORKDIR /bot_src
ARG BUILD_NBR ARG BUILD_NBR
ARG BRANCH_NAME ARG BRANCH_NAME

View File

@ -0,0 +1,16 @@
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();
}
}

View File

@ -1,7 +1,6 @@
package net.Broken; package net.Broken;
import java.util.HashMap; import net.dv8tion.jda.api.JDA;
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;
@ -11,8 +10,9 @@ 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 net.dv8tion.jda.api.JDA; import java.util.HashMap;
/** /**
* Main Class * Main Class