Skip to content

Commit

Permalink
Merge 55ea5a3 into 25c0781
Browse files Browse the repository at this point in the history
  • Loading branch information
musketyr committed Nov 25, 2020
2 parents 25c0781 + 55ea5a3 commit 917c35b
Show file tree
Hide file tree
Showing 107 changed files with 26,935 additions and 33 deletions.
17 changes: 1 addition & 16 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
plugins {
id 'org.kordamp.gradle.groovy-project'
id 'org.kordamp.gradle.bintray'
id 'com.github.kt3k.coveralls'
}

if (!project.hasProperty('bintrayUsername')) ext.bintrayUsername = '**UNDEFINED**'
Expand Down Expand Up @@ -115,6 +114,7 @@ subprojects { Project subproject ->
dependencyManagement {
imports {
mavenBom "io.micronaut:micronaut-bom:$micronautVersion"
mavenBom "org.grails:grails-bom:${grailsVersion}"
}
}

Expand Down Expand Up @@ -178,18 +178,3 @@ subprojects { Project subproject ->
}
}
}

gradle.taskGraph.whenReady {
coveralls {
sourceDirs = subprojects.findAll { it.plugins.hasPlugin('java') } sourceSets.main.allSource.srcDirs.flatten()
jacocoReportPath = "${buildDir}/reports/jacoco/root/jacocoTestReport.xml"
}
}

tasks.coveralls {
group = 'Coverage reports'
description = 'Uploads the aggregated coverage report to Coveralls'

dependsOn jacocoRootReport
onlyIf { System.env.CI || System.env.GITHUB_ACTIONS }
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright 2020 Vladimir Orany.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.agorapulse.micronaut.grails.domain

import grails.compiler.GrailsCompileStatic
import grails.gorm.annotation.Entity

/**
* Test entity.
*/
@Entity
@GrailsCompileStatic
@SuppressWarnings([
'GrailsDomainHasEquals',
'GrailsDomainHasToString',
'FieldTypeRequired',
])
class Manager {

static constraints = {
name maxSize: 255
}

String name

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright 2020 Vladimir Orany.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
apply plugin:"groovy"

sourceSets {
main {
groovy {
srcDir 'grails-app/domain'
}
}
}

dependencies {
compile 'org.grails:grails-datastore-gorm-hibernate5'

compileOnly "io.micronaut:micronaut-inject-groovy"

compile 'io.micronaut.configuration:micronaut-hibernate-gorm'

compileOnly "org.grails:grails-core:$grailsVersion"

compile "org.grails:grails-bootstrap:$grailsVersion"

annotationProcessor "io.micronaut:micronaut-inject-java"
compile "io.micronaut:micronaut-runtime-groovy"
compile "io.micronaut:micronaut-validation"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright 2020 Vladimir Orany.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.agorapulse.micronaut.grails.domain

import grails.gorm.services.Service
import groovy.transform.CompileStatic

/**
* Test data service.
*/
@CompileStatic
@Service(Manager)
abstract class ManagerService {

abstract Manager get(Long id)
abstract List<Manager> findAllByName(String name)

}
23 changes: 23 additions & 0 deletions examples/micronaut-grails-example/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#
# SPDX-License-Identifier: Apache-2.0
#
# Copyright 2020 Vladimir Orany.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

grailsVersion=4.0.4
gorm.version=7.0.6.RELEASE
org.gradle.daemon=true
org.gradle.parallel=true
org.gradle.jvmargs=-Dfile.encoding=UTF-8 -Xmx1024M
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 917c35b

Please sign in to comment.