Eclipse is hanging on me, so I reverted to a gradle build. Gradle classes fails with the error message below.
I do have a gradle.properties file in the project directory with: "org.gradle.warning.mode=none" in it. Eclipse normally runs the code and tests just fine.
I don't care about getting the warnings anywhere. I do want to stop the build from failing.
The build file below has a lot of extra stuff that I am not using now.
Edit 1: adding @SuppressWarnings("removal") seems to work.
C:\Users\raz\git\code\src\simplegui\InsetsDemo.java:4: warning: [removal] Applet in java.appl
et has been deprecated and marked for removal
public class InsetsDemo extends Applet {
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
build file:
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'org.hidetake:gradle-ssh-plugin:1.1.2'
}
}
plugins {
id 'java'
id 'checkstyle'
id 'distribution'
id 'application'
}
repositories {
mavenCentral()
}
sourceSets {
main {
main.java.srcDirs = ["src"]
main.resources.srcDirs = ["resources"]
}
test {
test.java.srcDirs = ["tst"] // removed slow/ as it was very.
}
}
dependencies {
testImplementation 'junit:junit:4.13.2'
}
jar {
manifest {
attributes 'Main-Class': MyStuff.main
}
}
run {
standardInput = System.in
}
targetCompatibility = "16"
sourceCompatibility = "16"
version = '0.1'
mainClassName = MyStuff.main // for application plugin
class MyStuff {
public static final String main="com.tayek.utilities.Dispatcher";
}