Skip to content

Commit

Permalink
Fix resolving from JCenter, add missing license headers
Browse files Browse the repository at this point in the history
  • Loading branch information
sambsnyd committed Nov 7, 2022
1 parent 5d7c5c6 commit dcc9cc5
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 5 deletions.
1 change: 1 addition & 0 deletions build-src/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ plugins {

repositories {
gradlePluginPortal()
mavenCentral()
}

dependencies {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dependencies {
api(platform("com.fasterxml.jackson:jackson-bom:2.13.4.20221013"))

implementation("org.jetbrains:annotations:latest.release")
compileOnly("com.google.code.findbugs:jsr305:latest.release")
// compileOnly("com.google.code.findbugs:jsr305:latest.release")

testImplementation(platform("org.junit:junit-bom:latest.release"))
testImplementation("org.junit.jupiter:junit-jupiter-api")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1322,10 +1322,7 @@ public void visitMapExpression(MapExpression map) {
} else {
entries = JContainer.build(visitRightPadded(map.getMapEntryExpressions().toArray(new ASTNode[0]), "]"));
}
queue.add(new G.MapLiteral(randomId(), prefix, Markers.EMPTY,
entries,
typeMapping.type(map.getType())
));
queue.add(new G.MapLiteral(randomId(), prefix, Markers.EMPTY, entries, typeMapping.type(map.getType())));
}

@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
* Copyright 2022 the original author or authors.
* <p>
* 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
* <p>
* https://www.apache.org/licenses/LICENSE-2.0
* <p>
* 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.openrewrite.groovy.tree;

import org.junit.jupiter.api.Test;
Expand Down

0 comments on commit dcc9cc5

Please sign in to comment.