From 118aa7ac1ab226208d8a8576fba02b32f26a0283 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Schalk=20W=2E=20Cronj=C3=A9?= Date: Sun, 14 Apr 2019 19:53:29 +0200 Subject: [PATCH] Remove deprecated compatibility tasks (#343) --- .../base/AsciidoctorBasePluginSpec.groovy | 37 ------------------- .../jvm/AsciidoctorExecutionException.groovy | 35 ------------------ ...AsciidoctorRemoteExecutionException.groovy | 33 ----------------- .../org.asciidoctor.jvm.convert.properties | 17 --------- 4 files changed, 122 deletions(-) delete mode 100644 asciidoctor-gradle-base/src/test/groovy/org/asciidoctor/gradle/base/AsciidoctorBasePluginSpec.groovy delete mode 100644 asciidoctor-gradle-jvm/src/main/groovy/org/asciidoctor/gradle/jvm/AsciidoctorExecutionException.groovy delete mode 100644 asciidoctor-gradle-jvm/src/main/groovy/org/asciidoctor/gradle/remote/AsciidoctorRemoteExecutionException.groovy delete mode 100644 asciidoctor-gradle-jvm/src/main/resources/META-INF/gradle-plugins/org.asciidoctor.jvm.convert.properties diff --git a/asciidoctor-gradle-base/src/test/groovy/org/asciidoctor/gradle/base/AsciidoctorBasePluginSpec.groovy b/asciidoctor-gradle-base/src/test/groovy/org/asciidoctor/gradle/base/AsciidoctorBasePluginSpec.groovy deleted file mode 100644 index 3dea25a73..000000000 --- a/asciidoctor-gradle-base/src/test/groovy/org/asciidoctor/gradle/base/AsciidoctorBasePluginSpec.groovy +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright 2013-2019 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.asciidoctor.gradle.base - -import org.asciidoctor.gradle.testfixtures.jvm.AsciidoctorjTestVersions -import org.gradle.api.Project -import org.gradle.testfixtures.ProjectBuilder -import spock.lang.Specification - -class AsciidoctorBasePluginSpec extends Specification { - - Project project = ProjectBuilder.builder().build() - - void 'Can apply the base plugin'() { - when: - project.allprojects { - apply plugin: 'org.asciidoctor.base' - } - - then: - project.tasks.find { it.name == 'assemble' } != null - noExceptionThrown() - } -} \ No newline at end of file diff --git a/asciidoctor-gradle-jvm/src/main/groovy/org/asciidoctor/gradle/jvm/AsciidoctorExecutionException.groovy b/asciidoctor-gradle-jvm/src/main/groovy/org/asciidoctor/gradle/jvm/AsciidoctorExecutionException.groovy deleted file mode 100644 index 501924e8d..000000000 --- a/asciidoctor-gradle-jvm/src/main/groovy/org/asciidoctor/gradle/jvm/AsciidoctorExecutionException.groovy +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright 2013-2019 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.asciidoctor.gradle.jvm - -import groovy.transform.CompileStatic -import org.gradle.api.GradleException - -/** - * @since 2.0.0 - * @author Schalk W. Cronjé - */ -@CompileStatic -class AsciidoctorExecutionException extends GradleException { - - AsciidoctorExecutionException(final String msg) { - super(msg) - } - - AsciidoctorExecutionException(final String msg, Throwable t) { - super(msg, t) - } -} diff --git a/asciidoctor-gradle-jvm/src/main/groovy/org/asciidoctor/gradle/remote/AsciidoctorRemoteExecutionException.groovy b/asciidoctor-gradle-jvm/src/main/groovy/org/asciidoctor/gradle/remote/AsciidoctorRemoteExecutionException.groovy deleted file mode 100644 index 363078c04..000000000 --- a/asciidoctor-gradle-jvm/src/main/groovy/org/asciidoctor/gradle/remote/AsciidoctorRemoteExecutionException.groovy +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright 2013-2019 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.asciidoctor.gradle.remote - -import groovy.transform.CompileStatic - -/** - * @since 2.0.0 - * @author Schalk W. Cronjé - */ -@CompileStatic -class AsciidoctorRemoteExecutionException extends Exception { - AsciidoctorRemoteExecutionException(String var1, Throwable var2) { - super(var1, var2) - } - - AsciidoctorRemoteExecutionException(String var1) { - super(var1) - } -} diff --git a/asciidoctor-gradle-jvm/src/main/resources/META-INF/gradle-plugins/org.asciidoctor.jvm.convert.properties b/asciidoctor-gradle-jvm/src/main/resources/META-INF/gradle-plugins/org.asciidoctor.jvm.convert.properties deleted file mode 100644 index 67599f66c..000000000 --- a/asciidoctor-gradle-jvm/src/main/resources/META-INF/gradle-plugins/org.asciidoctor.jvm.convert.properties +++ /dev/null @@ -1,17 +0,0 @@ -# -# Copyright 2013-2019 the original author or authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -implementation-class=org.asciidoctor.gradle.jvm.AsciidoctorJPlugin \ No newline at end of file