This file contains hidden or 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
| ./gradlew clean | |
| ./gradlew fatJar | |
| java -jar build/libs/hello-mod-1.0.0-SNAPSHOT-fat.jar |
This file contains hidden or 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
| rm -rf ~/.m2/repository/com/objectpartners/world-mod |
This file contains hidden or 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
| cd ../hello-mod/ | |
| ./gradlew fatJar | |
| java -jar build/libs/hello-mod-1.0.0-SNAPSHOT-fat.jar |
This file contains hidden or 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
| git clone https://github.com/JacobASeverson/vertx-fatjar-example.git | |
| cd vertx-fatjar-example/world-mod/ | |
| ./gradlew install |
This file contains hidden or 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
| echo -n 'Success!' | nc -4u -w1 localhost $UDP_SERVER_PORT |
This file contains hidden or 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
| git clone https://github.com/JacobASeverson/udp-reactor.git | |
| cd udp-reactor/ | |
| ./gradlew build | |
| java -jar build/libs/udp-reactor-0.0.1-SNAPSHOT.jar |
This file contains hidden or 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
| public class TestCasAuthenticationUserDetailsService implements AuthenticationUserDetailsService { | |
| @Override | |
| public UserDetails loadUserDetails(Authentication token) throws UsernameNotFoundException { | |
| List<GrantedAuthority> authorities = new ArrayList<>(); | |
| authorities.add(new SimpleGrantedAuthority("ROLE_USER")); | |
| return new User("joe", "joe", authorities); | |
| } | |
| } |
This file contains hidden or 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
| <security:user-service id="userService"> | |
| <security:user name="joe" password="joe" authorities="ROLE_USER" /> | |
| ... | |
| </security:user-service> |
This file contains hidden or 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
| @Configuration | |
| @EnableWebMvcSecurity | |
| public class WebSecurityConfig extends WebSecurityConfigurerAdapter { | |
| @Bean | |
| public ServiceProperties serviceProperties() { | |
| ServiceProperties serviceProperties = new ServiceProperties(); | |
| serviceProperties.setService("https://localhost:8443/cas-sample/j_spring_cas_security_check"); | |
| serviceProperties.setSendRenew(false); | |
| return serviceProperties; |
This file contains hidden or 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
| ... | |
| if (Environment.current in [Environment.DEVELOPMENT, Environment.TEST]) { | |
| exConfig = "file:/path/to/local/applicationConfig.groovy" | |
| } else { | |
| try { | |
| exConfig = ((Context)(new InitialContext().lookup("java:comp/env"))).lookup("grailsExtConfFile") | |
| ... |