我是Gradle构建系统的新手。我想使用带有IntelliJ IDEA 2016.1社区版的gradle。
错误:gradle-resources-test:aMaze_test:java.lang.NoClassDefFoundError:org / apache / tools / ant / util / ReaderInputStream
group 'aryanware'
version '1.0-SNAPSHOT'
apply plugin: 'java'
sourceCompatibility = 1.5
repositories {
mavenCentral()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.11'
}
package aryanware.amaze;
import javafx.application.Application;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.stage.Stage;
public class AmazeWindow extends Application {
@Override
public void start(Stage primaryStage) {
Group root = new Group();
Scene scene = new Scene(root, 300, 250);
primaryStage.setTitle("Hello World!");
primaryStage.setScene(scene);
primaryStage.show();
}
public static void main(String[] args) {
launch(args);
}
}
我对gradle的工作方式一无所知。所以我自己无法解决这个错误。