Add Java 8 support
This commit is contained in:
parent
83d2795519
commit
2eda1418cf
4
pom.xml
4
pom.xml
@ -45,8 +45,8 @@
|
|||||||
<artifactId>maven-compiler-plugin</artifactId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
<version>3.6.1</version>
|
<version>3.6.1</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<source>11</source>
|
<source>8</source>
|
||||||
<target>11</target>
|
<target>8</target>
|
||||||
<encoding>UTF-8</encoding>
|
<encoding>UTF-8</encoding>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
Manifest-Version: 1.0
|
Manifest-Version: 1.0
|
||||||
Main-Class: com.btk5h.skriptdb.SkriptDB
|
Main-Class: com.btk5h.skriptdb.SkriptDB
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ public class Types {
|
|||||||
static {
|
static {
|
||||||
Classes.registerClass(new ClassInfo<>(HikariDataSource.class, "datasource")
|
Classes.registerClass(new ClassInfo<>(HikariDataSource.class, "datasource")
|
||||||
.user("datasources?")
|
.user("datasources?")
|
||||||
.parser(new Parser<>() {
|
.parser(new Parser<HikariDataSource>() {
|
||||||
@Override
|
@Override
|
||||||
public HikariDataSource parse(String s, ParseContext context) {
|
public HikariDataSource parse(String s, ParseContext context) {
|
||||||
return null;
|
return null;
|
||||||
@ -35,7 +35,7 @@ public class Types {
|
|||||||
return "jdbc:.+";
|
return "jdbc:.+";
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.serializer(new Serializer<>() {
|
.serializer(new Serializer<HikariDataSource>() {
|
||||||
@Override
|
@Override
|
||||||
public Fields serialize(HikariDataSource o) {
|
public Fields serialize(HikariDataSource o) {
|
||||||
Fields fields = new Fields();
|
Fields fields = new Fields();
|
||||||
|
Loading…
Reference in New Issue
Block a user