Skip to content

Commit

Permalink
Update plugin build script
Browse files Browse the repository at this point in the history
  • Loading branch information
rainboyan committed Jun 3, 2024
1 parent d30d5fa commit d77b499
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 38 deletions.
19 changes: 9 additions & 10 deletions plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ repositories {
}

dependencies {
compileOnly "javax.servlet:javax.servlet-api:$servletVersion"
compileOnly "org.springframework.boot:spring-boot-autoconfigure"
compileOnly "org.graceframework:grace-boot"
compileOnly "org.graceframework:grace-core"
Expand All @@ -53,8 +52,8 @@ tasks.withType(Test) {
}

java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
withJavadocJar()
withSourcesJar()
}
Expand All @@ -64,7 +63,7 @@ jar {
manifest.mainAttributes(
"Built-By": System.properties['user.name'],
"Created-By": System.properties['java.vm.version'] + " (" + System.properties['java.vm.vendor'] + ")",
"Implementation-Title": "Grace Policy Plugin",
"Implementation-Title": "Grace View Components",
"Implementation-Version": projectVersion,
"Implementation-Vendor": 'Grace Plugins')
enabled = true
Expand Down Expand Up @@ -96,9 +95,9 @@ publishing {
from components.java

pom {
name = "Grace Policy Plugin"
description = "Authorization plugin for Grails/Grace applications."
url = 'https://github.com/grace-plugins/grace-policy'
name = "Grace View Components"
description = "A Grace plugin for creating reusable, testable and encapsulated view components."
url = 'https://github.com/grace-plugins/grace-view-components'
licenses {
license {
name = 'The Apache License, Version 2.0'
Expand All @@ -113,9 +112,9 @@ publishing {
}
}
scm {
connection = 'scm:git:git://github.com/grace-plugins/grace-policy.git'
developerConnection = 'scm:git:ssh://github.com:grace-plugins/grace-policy.git'
url = 'https://github.com/grace-plugins/grace-policy'
connection = 'scm:git:git://github.com/grace-plugins/grace-view-components.git'
developerConnection = 'scm:git:ssh://github.com:grace-plugins/grace-view-components.git'
url = 'https://github.com/grace-plugins/grace-view-components'
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ A Grace plugin for creating reusable, testable and encapsulated view components.
def profiles = ['web']

// URL to the plugin's documentation
def documentation = "https://github.com/grace-plugin/grace-view-components"
def documentation = "https://github.com/grace-plugins/grace-view-components"

// Extra (optional) plugin metadata

Expand All @@ -47,31 +47,4 @@ A Grace plugin for creating reusable, testable and encapsulated view components.
// Online location of the plugin's browseable source code.
def scm = [ url: "https://github.com/grace-plugins/grace-view-components" ]

Closure doWithSpring() { {->
// TODO Implement runtime spring config (optional)
}
}

void doWithDynamicMethods() {
// TODO Implement registering dynamic methods to classes (optional)
}

void doWithApplicationContext() {
// TODO Implement post initialization spring config (optional)
}

void onChange(Map<String, Object> event) {
// TODO Implement code that is executed when any artefact that this plugin is
// watching is modified and reloaded. The event contains: event.source,
// event.application, event.manager, event.ctx, and event.plugin.
}

void onConfigChange(Map<String, Object> event) {
// TODO Implement code that is executed when the project configuration changes.
// The event is the same as for 'onChange'.
}

void onShutdown(Map<String, Object> event) {
// TODO Implement code that is executed when the application shuts down (optional)
}
}

0 comments on commit d77b499

Please sign in to comment.