Open egoarka opened 5 years ago
$ sudo ./gradlew clean run --info
> Task :compileJava FAILED
Task ':compileJava' is not up-to-date because:
Task has failed previously.
All input files are considered out-of-date for incremental task ':compileJava'.
Full recompilation is required because no incremental change information is available. This is usually caused by clean builds or changing compiler arguments.
Compiling with JDK Java compiler API.
/home/user/fun-jdbc/example/src/main/java/com/github/nwillc/funjdbc/example/Example.java:9: error: package com.github.nwillc.funjdbc.migrate does not exist
import com.github.nwillc.funjdbc.migrate.Manager;
^
/home/user/fun-jdbc/example/src/main/java/com/github/nwillc/funjdbc/example/database/PersonTable.java:3: error: package com.github.nwillc.funjdbc.migrate does not exist
import com.github.nwillc.funjdbc.migrate.MigrationBase;
^
/home/user/fun-jdbc/example/src/main/java/com/github/nwillc/funjdbc/example/database/PersonTable.java:6: error: cannot find symbol
public class PersonTable extends MigrationBase {
^
symbol: class MigrationBase
/home/user/fun-jdbc/example/src/main/java/com/github/nwillc/funjdbc/example/Example.java:63: error: cannot find symbol
Manager manager = Manager.getInstance();
^
symbol: class Manager
location: class Example
/home/user/fun-jdbc/example/src/main/java/com/github/nwillc/funjdbc/example/Example.java:63: error: cannot find symbol
Manager manager = Manager.getInstance();
^
symbol: variable Manager
location: class Example
/home/user/fun-jdbc/example/src/main/java/com/github/nwillc/funjdbc/example/Example.java:77: error: incompatible types: Extractor<Person> cannot be converted to SqlStatement
return dbFind(personExtractor, sql("SELECT * FROM PERSON WHERE PERSON_ID = %d", id));
^
/home/user/fun-jdbc/example/src/main/java/com/github/nwillc/funjdbc/example/Example.java:81: error: incompatible types: Extractor<Person> cannot be converted to SqlStatement
return dbQuery(personExtractor, sql("SELECT * FROM PERSON")).collect(Collectors.toMap(Person::getPersonId, person -> person));
^
/home/user/fun-jdbc/example/src/main/java/com/github/nwillc/funjdbc/example/Example.java:85: error: incompatible types: Map<Long,Person> cannot be converted to SqlStatement
dbEnrich(personMap, rs -> rs.getLong("PERSON_ID"), ageEnricher, sql("SELECT PERSON_ID, AGE FROM PERSON"));
^
/home/user/fun-jdbc/example/src/main/java/com/github/nwillc/funjdbc/example/database/PersonTable.java:15: error: method does not override or implement a method from a supertype
@Override
^
/home/user/fun-jdbc/example/src/main/java/com/github/nwillc/funjdbc/example/database/PersonTable.java:20: error: method does not override or implement a method from a supertype
@Override
^
/home/user/fun-jdbc/example/src/main/java/com/github/nwillc/funjdbc/example/database/PersonTable.java:25: error: method does not override or implement a method from a supertype
@Override
^
/home/user/fun-jdbc/example/src/main/java/com/github/nwillc/funjdbc/example/database/PersonTable.java:27: error: cannot find symbol
dbUpdate(sql(CREATE));
^
symbol: method dbUpdate(SqlStatement)
location: class PersonTable
/home/user/fun-jdbc/example/src/main/java/com/github/nwillc/funjdbc/example/database/PersonTable.java:28: error: cannot find symbol
dbUpdate(sql(INSERT, "Wile", "Coyote", 25));
^
symbol: method dbUpdate(SqlStatement)
location: class PersonTable
/home/user/fun-jdbc/example/src/main/java/com/github/nwillc/funjdbc/example/database/PersonTable.java:29: error: cannot find symbol
dbUpdate(sql(INSERT, "Elmer", "Fud", 50));
^
symbol: method dbUpdate(SqlStatement)
location: class PersonTable
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
14 errors
:compileJava (Thread[Task worker for ':',5,main]) completed. Took 0.204 secs.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.
When the dependency is added to pom.xml, Maven start to complain
Missing artifact com.github.nwillc:fun-jdbc:pom:1.0.0
$ java --version