Search Gradle plugins

com.sebchlan.javacensor

Java Censor is a Gradle plugin that enables developers to publish sources of closed source projects to a Maven repository. It does this by removing implemented code only leaving the signatures of public interfaces, classes, methods and fields behind.

https://github.com/schlan/java-censor

Sources: https://github.com/schlan/java-censor

Version 1.1.0 (latest)

Created 20 February 2018.

Java Censor is a Gradle plugin that enables developers to publish sources of closed source projects to a Maven repository. It does this by removing implemented code only leaving the signatures of public interfaces, classes, methods and fields behind.

Add this plugin to your build using the plugins DSL:

plugins {
  id("com.sebchlan.javacensor") version "1.1.0"
}

See also:

  • Adding the plugin to build logic for usage in precompiled script plugins.

    See the relevant documentation for more information.

    Add this plugin as a dependency to <convention-plugins-build>/build.gradle(.kts):

    dependencies {
      implementation("com.sebchlan.javacensor:com.sebchlan.javacensor.gradle.plugin:1.1.0")
    }
    It can then be applied in the precompiled script plugin:
    plugins {
      id("com.sebchlan.javacensor")
    }
  • The legacy method of plugin application. See the relevant documentation for more information.
    buildscript {
      repositories {
        gradlePluginPortal()
      }
      dependencies {
        classpath("com.sebchlan.javacensor:com.sebchlan.javacensor.gradle.plugin:1.1.0")
      }
    }
    
    apply(plugin = "com.sebchlan.javacensor")
  • Applying plugins to all subprojects .