matrei commented on code in PR #10: URL: https://github.com/apache/grails-gradle-publish/pull/10#discussion_r2399604090
########## plugin/src/functionalTest/resources/publish-projects/other-artifacts/organization/build.gradle: ########## @@ -0,0 +1,61 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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. + */ + +buildscript { + repositories { + maven { url "${System.getenv('LOCAL_MAVEN_PATH')}" } + maven { url = 'https://repo.grails.org/grails/restricted' } + } + dependencies { + classpath "org.apache.grails.gradle:grails-publish:$grailsGradlePluginVersion" + } +} + +allprojects { + repositories { + maven { url = 'https://repo.grails.org/grails/restricted' } + } +} + +version = "${projectVersion}" +group = "org.grails.example" Review Comment: Align on single quotes for strings? ########## plugin/src/main/groovy/org/apache/grails/gradle/publish/License.groovy: ########## @@ -0,0 +1,55 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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 org.apache.grails.gradle.publish + +class License { + + String name + String url + String distribution = 'repo' + + static final License APACHE2 = new License(name: 'The Apache Software License, Version 2.0', url: 'https://www.apache.org/licenses/LICENSE-2.0.txt') Review Comment: Break lines? ```groovy static final License MY = new License( name: 'My License Name', url: 'my.license.url' ) ``` ########## plugin/src/functionalTest/resources/publish-projects/other-artifacts/organization/src/main/groovy/org/grails/example/MyProject.groovy: ########## @@ -0,0 +1,27 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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 org.grails.example + +class MyProject { + + def sayHello() { + println "Hello from SubProject2" Review Comment: - Align on parentheses for method calls? - Align on single quotes for strings? ########## plugin/src/functionalTest/resources/publish-projects/other-artifacts/organization/build.gradle: ########## @@ -0,0 +1,61 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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. + */ + +buildscript { + repositories { + maven { url "${System.getenv('LOCAL_MAVEN_PATH')}" } + maven { url = 'https://repo.grails.org/grails/restricted' } + } + dependencies { + classpath "org.apache.grails.gradle:grails-publish:$grailsGradlePluginVersion" + } +} + +allprojects { + repositories { + maven { url = 'https://repo.grails.org/grails/restricted' } + } +} + +version = "${projectVersion}" Review Comment: ```groovy version = projectVersion ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
