Skip to content

Commit b8ac253

Browse files
committed
fix: moved to Table implementation
1 parent 1fa366f commit b8ac253

7 files changed

Lines changed: 12 additions & 7 deletions

File tree

.DS_Store

8 KB
Binary file not shown.

META-INF/maven/pom.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111

1212
<properties>
1313
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
14-
<maven.compiler.source>1.7</maven.compiler.source>
15-
<maven.compiler.target>1.7</maven.compiler.target>
14+
<maven.compiler.source>11</maven.compiler.source>
15+
<maven.compiler.target>11</maven.compiler.target>
1616
</properties>
1717

1818
<dependencies>
@@ -28,6 +28,7 @@
2828
<groupId>mysql</groupId>
2929
<artifactId>mysql-connector-java</artifactId>
3030
<version>8.0.21</version>
31+
<scope>compile</scope>
3132
</dependency>
3233
</dependencies>
3334

build.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,16 @@
88

99
plugins {
1010
// Apply the java-library plugin to add support for Java Library
11+
id 'java'
1112
id 'java-library'
1213
id 'maven-publish'
1314
}
1415

16+
compileJava {
17+
sourceCompatibility = '11'
18+
targetCompatibility = '11'
19+
}
20+
1521
repositories {
1622
// Use jcenter for resolving dependencies.
1723
// You can declare any Maven/Ivy/file repository here.
@@ -34,3 +40,5 @@ dependencies {
3440

3541
compile (name:'mysql-connector-java-8.0.21', ext:'jar')
3642
}
43+
44+
apply plugin: 'java'

src/main/java/com/code/advancedsql/SQL.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package com.code.advancedsql;
22

33
import com.code.advancedsql.query.IQuery;
4-
import com.code.advancedsql.table.ITable;
54
import com.code.advancedsql.table.Table;
65

76
import java.sql.Connection;
@@ -25,7 +24,7 @@ public boolean isConnected() {
2524
}
2625

2726
@Override
28-
public ITable table(String name) {
27+
public Table table(String name) {
2928
return new Table(this, name);
3029
}
3130

src/main/java/com/code/advancedsql/query/Select.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package com.code.advancedsql.query;
22

3-
import advancedsql.query.join.*;
43
import com.code.advancedsql.table.ITable;
54
import com.code.advancedsql.query.join.*;
65

src/main/java/com/code/advancedsql/table/ITable.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package com.code.advancedsql.table;
22

33
import com.code.advancedsql.ISQL;
4-
import advancedsql.query.*;
54
import com.code.advancedsql.query.*;
65

76
import java.sql.SQLException;

src/main/java/com/code/advancedsql/table/Table.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import com.code.advancedsql.ISQL;
44
import com.code.advancedsql.SQL;
5-
import advancedsql.query.*;
65
import com.code.advancedsql.query.*;
76

87
import java.sql.DatabaseMetaData;

0 commit comments

Comments
 (0)