diff --git a/build.gradle b/build.gradle index 51e9cdb..b5f7d28 100644 --- a/build.gradle +++ b/build.gradle @@ -7,9 +7,6 @@ def buildJSON = JsonSlurper.newInstance().parseText(new File("build.json").text) def baseProjectName = buildJSON?.project?.name ?: '__project_name__'; def jarManifestMainClass = buildJSON?.project?.main ?: 'SampleMain' -if (buildJSON.application) { - mainClassName = jarManifestMainClass -} archivesBaseName = buildJSON?.project?.archiveName ?: baseProjectName sourceCompatibility = 1.8 targetCompatibility = 1.8 @@ -32,18 +29,6 @@ tasks.withType(JavaCompile) { // '-x test' skip unit test defaultTasks 'build' -buildscript { - repositories { - mavenLocal() - maven() { url 'https://maven.aliyun.com/repository/central' } - mavenCentral() - jcenter() - } - dependencies { - classpath("org.springframework.boot:spring-boot-gradle-plugin:1.5.11.RELEASE") - } -} - jar { manifest { attributes 'Main-Class': jarManifestMainClass diff --git a/build.json b/build.json index 0b86e23..83dbed2 100644 --- a/build.json +++ b/build.json @@ -4,7 +4,6 @@ "main": "me.hatter.tools.secureeditor.Main", "archiveName": "secure-editor" }, - "application": false, "java": "1.8", "builder": { "name": "gradle",