Skip to content

Commit e4d33fc

Browse files
committed
Jabuka
1 parent 33f01b0 commit e4d33fc

22 files changed

+40
-635
lines changed

java/build.gradle

Lines changed: 14 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,29 @@
1-
buildscript {
2-
ext.kotlin_version = '1.3.72'
3-
repositories {
4-
mavenCentral()
5-
}
6-
dependencies {
7-
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
8-
}
1+
plugins {
2+
id 'java-library'
93
}
104

11-
12-
group 'void'
13-
version '1.0-SNAPSHOT'
14-
15-
apply plugin: 'java'
16-
apply plugin: 'eclipse'
17-
apply plugin: 'idea'
18-
apply plugin: 'kotlin'
19-
20-
sourceCompatibility = 11
21-
225
repositories {
236
mavenCentral()
247
}
258

9+
java {
10+
toolchain {
11+
languageVersion = JavaLanguageVersion.of(21)
12+
}
13+
}
14+
2615
dependencies {
2716
implementation 'org.jodd:jodd-core:5.1.4'
2817
implementation 'org.jodd:jodd-http:5.1.4'
2918
implementation 'org.jodd:jodd-json:5.1.4'
3019

31-
compileOnly 'org.projectlombok:lombok:1.18.20'
32-
annotationProcessor 'org.projectlombok:lombok:1.18.20'
20+
compileOnly 'org.projectlombok:lombok:1.18.30'
21+
annotationProcessor 'org.projectlombok:lombok:1.18.30'
3322

34-
testCompileOnly 'org.projectlombok:lombok:1.18.20'
35-
testAnnotationProcessor 'org.projectlombok:lombok:1.18.20'
23+
testCompileOnly 'org.projectlombok:lombok:1.18.30'
24+
testAnnotationProcessor 'org.projectlombok:lombok:1.18.30'
3625

37-
compile group: 'io.projectreactor', name: 'reactor-core', version: '3.4.9'
38-
39-
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.0.0'
40-
api "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
41-
}
26+
implementation 'io.projectreactor:reactor-core:3.4.9'
4227

43-
compileKotlin {
44-
kotlinOptions {
45-
jvmTarget = "1.8"
46-
}
47-
}
48-
compileTestKotlin {
49-
kotlinOptions {
50-
jvmTarget = "1.8"
51-
}
28+
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.0.0'
5229
}

java/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#Tue Jun 02 14:46:21 CEST 2020
2-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.3-all.zip
2+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-all.zip
33
distributionBase=GRADLE_USER_HOME
44
distributionPath=wrapper/dists
55
zipStorePath=wrapper/dists
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package v.o.i.d.enums;
2+
3+
public class JabukaExample {
4+
5+
sealed interface Apple {
6+
record GrannySmith() implements Apple {}
7+
record GoldenDel() implements Apple {}
8+
record PinkLady() implements Apple {}
9+
}
10+
public static void main(String[] args) {
11+
Apple apple = new Apple.GrannySmith();
12+
System.out.println(apple);
13+
}
14+
15+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package v.o.i.d.enums;
2+
3+
public class Witch {
4+
// final static class PoisonApple implements JabukaExample.Apple {
5+
// }
6+
}

java/src/main/java/v/o/i/d/net/ProxyExample.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,15 @@
66
import java.net.HttpURLConnection;
77
import java.net.InetSocketAddress;
88
import java.net.Proxy;
9+
import java.net.URI;
10+
import java.net.URISyntaxException;
911
import java.net.URL;
1012

1113
public class ProxyExample {
1214

13-
public static void main(String[] args) throws IOException {
15+
public static void main(String[] args) throws IOException, URISyntaxException {
1416
Proxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress("dps.iso.apple.com", 443));
15-
URL url = new URL("http://google.com");
17+
URL url = new URI("http://google.com").toURL();
1618

1719
System.out.println("open");
1820
HttpURLConnection uc = (HttpURLConnection) url.openConnection(proxy);

java/src/main/kotlin/challenge/height/HeightRows.kt

Lines changed: 0 additions & 60 deletions
This file was deleted.

java/src/main/kotlin/challenge/tvsm/Maze.kt

Lines changed: 0 additions & 63 deletions
This file was deleted.

java/src/main/kotlin/challenge/tvsm/MazeBuilder.kt

Lines changed: 0 additions & 49 deletions
This file was deleted.

java/src/main/kotlin/challenge/tvsm/MazeLoader.kt

Lines changed: 0 additions & 76 deletions
This file was deleted.

java/src/main/kotlin/challenge/tvsm/TM.kt

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)