* User template vars for links to pulsar docs site * Update all code references to `2.11.0`
32 lines
878 B
Groovy
32 lines
878 B
Groovy
plugins {
|
|
id 'java'
|
|
}
|
|
|
|
group = 'org.springframework.pulsar.sample'
|
|
description = 'Sample Signup Pulsar Function'
|
|
sourceCompatibility = '1.8'
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'org.apache.pulsar:pulsar-client-all:2.11.0'
|
|
implementation 'org.apache.pulsar:pulsar-functions-api:2.11.0'
|
|
compileOnly 'org.projectlombok:lombok:1.18.24'
|
|
annotationProcessor 'org.projectlombok:lombok:1.18.24'
|
|
}
|
|
|
|
// Customization of jar to make a simple Uber function jar
|
|
jar {
|
|
manifest {
|
|
attributes 'Main-Class': 'org.springframework.pulsar.sample.signup.SignupFunction'
|
|
}
|
|
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
|
from sourceSets.main.output
|
|
dependsOn configurations.runtimeClasspath
|
|
from(configurations.runtimeClasspath.findAll { it.name.endsWith('jar') }.collect { zipTree(it) }) {
|
|
exclude 'META-INF/*.RSA', 'META-INF/*.SF', 'META-INF/*.DSA'
|
|
}
|
|
}
|