JLLeitschuh/gradle-kotlin-aspectj-weaver


A Gradle plugin that allows you to weave your compiled Java and Kotlin files with AspectJ

Download


Step 1. Add the JitPack repository to your build file

Add it in your root settings.gradle at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url 'https://jitpack.io' }
		}
	}

Add it in your settings.gradle.kts at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url = uri("https://jitpack.io") }
		}
	}

Add to pom.xml

	<repositories>
		<repository>
		    <id>jitpack.io</id>
		    <url>https://jitpack.io</url>
		</repository>
	</repositories>

Add it in your build.sbt at the end of resolvers:

 
    resolvers += "jitpack" at "https://jitpack.io"
        
    

Add it in your project.clj at the end of repositories:

 
    :repositories [["jitpack" "https://jitpack.io"]]
        
    

Step 2. Add the dependency

	dependencies {
		implementation 'com.github.JLLeitschuh:gradle-kotlin-aspectj-weaver:'
	}
	dependencies {
		implementation("com.github.JLLeitschuh:gradle-kotlin-aspectj-weaver:")
	}
	<dependency>
	    <groupId>com.github.JLLeitschuh</groupId>
	    <artifactId>gradle-kotlin-aspectj-weaver</artifactId>
	    <version></version>
	</dependency>

                            
    libraryDependencies += "com.github.JLLeitschuh" % "gradle-kotlin-aspectj-weaver" % ""
        
        

                            
    :dependencies [[com.github.JLLeitschuh/gradle-kotlin-aspectj-weaver ""]]
        
        

Readme


Kotlin AspectJ Weaver Gradle Plugin

Build Status

A Gradle plugin that allows you to weave Java and Kotlin files with AspectJ using class time weaving instead of compile time weaving.

A project loosely based upon the eveoh/gradle-aspectj project. This project supports weaving just Java classes or both Java and Kotlin code.

This plugin could theoretically be adapted to weave other JVM languages but currently only supports Java.

Release Status

If someone has a serious interest in having this plugin used in their builds, I'll be hapy to publish a release. I haven't done so yet because I don't have a use for this project anymore. Please open an issue requesting a release of the plugin if you are actually interested in using it.

Building Code

This build uses Gradle's new composite build feature to integration test several subprojects under the samples directory.

If you want to run the samples and develop the plugin iteratively, then import the samples/settings.gradle file into ItelliJ. IntelliJ will figure out the rest.