Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup project for publishing a release #94

Merged
merged 2 commits into from
Jan 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 24 additions & 39 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ buildscript {
dependencies {
classpath "org.grails:grails-gradle-plugin:$grailsVersion"
classpath "org.grails:grails-docs:${project.ext.properties.grailsDocsVersion ?: grailsVersion}"
classpath 'com.bmuschko:gradle-nexus-plugin:2.3.1'
classpath 'io.github.groovylang.groovydoc:groovydoc-gradle-plugin:1.0.1'
classpath "io.github.gradle-nexus:publish-plugin:1.1.0"
}
}

Expand All @@ -18,7 +17,7 @@ repositories {
version project.projectVersion

ext {
commonBuild = 'https://raw.githubusercontent.com/grails/grails-common-build/9531dd5e6d774b86e2d8220aff3bcec3add43320'
commonBuild = 'https://raw.githubusercontent.com/grails/grails-common-build/master'
}

subprojects {
Expand All @@ -35,56 +34,42 @@ subprojects {
maven { url "https://repo.grails.org/grails/core" }
}

if(project.name.startsWith("examples-")) {
if(project.name.startsWith("examples-grails-")) {
apply plugin:"org.grails.grails-web"
tasks.withType(GroovyCompile).configureEach {
configure(groovyOptions) {
forkOptions.jvmArgs = ['-Xmx1024m']
}
}

tasks.withType(Test) {
testLogging {
events "failed"
exceptionFormat "full"
}
tasks.withType(Test).configureEach {
testLogging {
events "failed"
exceptionFormat "full"
showStandardStreams true
}
}

if (project.name.startsWith("examples-")) {
if (project.name.startsWith("examples-grails-")) {
apply plugin: "org.grails.grails-web"
}
return
}

if(isGrailsPlugin) {
if (isGrailsPlugin) {
group "org.grails.plugins"
}
else {
} else {
group "org.grails"
}

if(project.name.endsWith('docs')) {
apply from:"${commonBuild}/common-docs.gradle"
return
}

if (isGrailsPlugin) {
apply plugin:"org.grails.grails-plugin"
apply plugin: "org.grails.grails-plugin"
} else {
apply from: "${commonBuild}/common-project.gradle"
}
else {
apply from:"${commonBuild}/common-project.gradle"
}

apply from:"${commonBuild}/common-publishing.gradle"

dependencies {
testCompile "org.codehaus.groovy:groovy-test:$groovyVersion"
}
}

tasks.withType(GroovyCompile) {
configure(groovyOptions) {
forkOptions.jvmArgs = ['-Xmx1024m']
}
}

tasks.withType(Test) {
testLogging {
events "failed"
exceptionFormat "full"
showStandardStreams true
}
}
}
apply from: "${commonBuild}/common-publishing.gradle"
6 changes: 5 additions & 1 deletion docs/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
/*
publishGuide {
sourceRepo = "https://github.com/${githubSlug}/edit/${githubBranch}/docs/src/main/docs"
}
*/

dependencies {
documentation "org.codehaus.groovy:groovy-groovydoc:$groovyVersion"
}
}

apply from: "${commonBuild}/common-docs.gradle"
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ projectVersion=2.0.1
projectDesc=Generates a GraphQL schema based on entities in GORM
projectUrl=https://github.com/grails/gorm-graphql
githubSlug=grails/gorm-graphql
githubBranch=master
githubBranch=2.0.x
developers=James Kleeh
gormVersion=7.0.5.RELEASE
gormHibernateVersion=7.0.3.RELEASE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,38 +19,16 @@ import org.grails.gorm.graphql.types.DefaultGraphQLTypeManager

class GormGraphqlGrailsPlugin extends Plugin {

// the version or versions of Grails the plugin is designed for
def grailsVersion = "4.0.0.BUILD-SNAPSHOT > *"


// TODO Fill in these fields
def title = "Gorm Graphql" // Headline display name of the plugin
def grailsVersion = "4.0.0 > *"
def title = "Gorm GraphQL"
def author = "James Kleeh"
def authorEmail = "james.kleeh@gmail.com"
def description = '''\
Brief summary/description of the plugin.
'''
def profiles = ['web']

// URL to the plugin's documentation
def documentation = "http://grails.org/plugin/gorm-graphql"

// Extra (optional) plugin metadata

// License: one of 'APACHE', 'GPL2', 'GPL3'
// def license = "APACHE"

// Details of company behind the plugin (if there is one)
// def organization = [ name: "My Company", url: "http://www.my-company.com/" ]

// Any additional developers beyond the author specified above.
// def developers = [ [ name: "Joe Bloggs", email: "joe@bloggs.net" ]]

// Location of the plugin's issue tracker.
// def issueManagement = [ system: "JIRA", url: "http://jira.grails.org/browse/GPMYPLUGIN" ]

// Online location of the plugin's browseable source code.
// def scm = [ url: "http://svn.codehaus.org/grails-plugins/" ]
def documentation = "https://plugins.grails.org/plugin/gorm-graphql"
def license = "APACHE"
def developers = [ [ name: "Puneet Behl", email: "behlp@objectcomputing.com" ]]
def issueManagement = [ system: "GitHub", url: "https://github.com/grails/gorm-graphql/issues" ]
def scm = [ url: "https://github.com/grails/gorm-graphql/" ]

public static MimeType GRAPHQL_MIME = new MimeType('application/graphql')

Expand Down