From eb8fc003e09578fa74708633afd0061d12c2ac45 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) --- .../gradle/base/AsciidoctorBasePlugin.groovy | 33 ---------------- .../org.asciidoctor.jvm.pdf.properties | 17 --------- .../gradle/jvm/AsciidoctorJPluginSpec.groovy | 38 ------------------- .../kindlegen/KindleGenBasePlugin.groovy | 34 ----------------- 4 files changed, 122 deletions(-) delete mode 100644 asciidoctor-gradle-base/src/main/groovy/org/asciidoctor/gradle/base/AsciidoctorBasePlugin.groovy delete mode 100644 asciidoctor-gradle-jvm/src/main/resources/META-INF/gradle-plugins/org.asciidoctor.jvm.pdf.properties delete mode 100644 asciidoctor-gradle-jvm/src/test/groovy/org/asciidoctor/gradle/jvm/AsciidoctorJPluginSpec.groovy delete mode 100644 kindlegen-gradle/src/main/groovy/org/asciidoctor/gradle/kindlegen/KindleGenBasePlugin.groovy diff --git a/asciidoctor-gradle-base/src/main/groovy/org/asciidoctor/gradle/base/AsciidoctorBasePlugin.groovy b/asciidoctor-gradle-base/src/main/groovy/org/asciidoctor/gradle/base/AsciidoctorBasePlugin.groovy deleted file mode 100644 index 294ad3802..000000000 --- a/asciidoctor-gradle-base/src/main/groovy/org/asciidoctor/gradle/base/AsciidoctorBasePlugin.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.base - -import groovy.transform.CompileStatic -import org.gradle.api.Plugin -import org.gradle.api.Project - -/** Base plugin for all Asciidoctor plugins (J & JS). - * - * @since 2.0.0 - * @author Schalk W. Cronjé - */ -@CompileStatic -class AsciidoctorBasePlugin implements Plugin { - - void apply(Project project) { - project.apply plugin: 'base' - } -} \ No newline at end of file diff --git a/asciidoctor-gradle-jvm/src/main/resources/META-INF/gradle-plugins/org.asciidoctor.jvm.pdf.properties b/asciidoctor-gradle-jvm/src/main/resources/META-INF/gradle-plugins/org.asciidoctor.jvm.pdf.properties deleted file mode 100644 index 7199f919b..000000000 --- a/asciidoctor-gradle-jvm/src/main/resources/META-INF/gradle-plugins/org.asciidoctor.jvm.pdf.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.AsciidoctorJPdfPlugin \ No newline at end of file diff --git a/asciidoctor-gradle-jvm/src/test/groovy/org/asciidoctor/gradle/jvm/AsciidoctorJPluginSpec.groovy b/asciidoctor-gradle-jvm/src/test/groovy/org/asciidoctor/gradle/jvm/AsciidoctorJPluginSpec.groovy deleted file mode 100644 index a17e91879..000000000 --- a/asciidoctor-gradle-jvm/src/test/groovy/org/asciidoctor/gradle/jvm/AsciidoctorJPluginSpec.groovy +++ /dev/null @@ -1,38 +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 org.gradle.api.Project -import org.gradle.testfixtures.ProjectBuilder -import spock.lang.Specification - -class AsciidoctorJPluginSpec extends Specification { - - Project project = ProjectBuilder.builder().build() - - @SuppressWarnings('Instanceof') - void 'Apply the plugin will add a task called asciidoctor'() { - when: - project.allprojects { - apply plugin: 'org.asciidoctor.jvm.convert' - } - - then: - verifyAll { - project.tasks.getByName('asciidoctor') instanceof AsciidoctorTask - } - } -} \ No newline at end of file diff --git a/kindlegen-gradle/src/main/groovy/org/asciidoctor/gradle/kindlegen/KindleGenBasePlugin.groovy b/kindlegen-gradle/src/main/groovy/org/asciidoctor/gradle/kindlegen/KindleGenBasePlugin.groovy deleted file mode 100644 index 07729f8ba..000000000 --- a/kindlegen-gradle/src/main/groovy/org/asciidoctor/gradle/kindlegen/KindleGenBasePlugin.groovy +++ /dev/null @@ -1,34 +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.kindlegen - -import groovy.transform.CompileStatic -import org.gradle.api.Plugin -import org.gradle.api.Project - -/** Create the {@code kindlegen} extension. - * - * @since 2.0.0 - * @author Schalk W. Cronjé - */ -@CompileStatic -class KindleGenBasePlugin implements Plugin { - - void apply(Project project) { - project.extensions.create(KindleGenExtension.NAME, KindleGenExtension, project) - } -} -