Skip to content

Commit

Permalink
put writer in a profile
Browse files Browse the repository at this point in the history
change min version back to 4.0.0
  • Loading branch information
evanchooly committed May 12, 2024
1 parent 776104d commit e6a05c6
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/DriverVersions.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public static void main(String... args) throws Exception {
// props to Chris Dellaway for the pointer to this
var url = "https://repo1.maven.org/maven2/org/mongodb/mongodb-driver-sync/maven-metadata.xml";

var min = System.getenv().getOrDefault("DRIVER_MIN", "5.0.0");
var min = System.getenv().getOrDefault("DRIVER_MIN", "4.0.0");
Version driverMinimum = Version.valueOf(min);
var mapper = new XmlMapper();
var document = mapper.readTree(new URL(url));
Expand Down
8 changes: 7 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,13 @@
<module>critter</module>
</modules>
</profile>

<profile>
<id>rewrite</id>
<modules>
<module>rewrite</module>
</modules>
</profile>
</profiles>

<modules>
Expand All @@ -334,6 +341,5 @@
<module>kotlin</module>
<module>validation</module>
<module>examples</module>
<module>rewrite</module>
</modules>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,16 @@
import org.openrewrite.java.JavaIsoVisitor;
import org.openrewrite.java.MethodMatcher;
import org.openrewrite.java.tree.Expression;
import org.openrewrite.java.tree.J.Assignment;
import org.openrewrite.java.tree.J.AssignmentOperation;
import org.openrewrite.java.tree.J.FieldAccess;
import org.openrewrite.java.tree.J.Identifier;
import org.openrewrite.java.tree.J.Identifier;
import org.openrewrite.java.tree.J.MethodInvocation;
import org.openrewrite.java.tree.J.VariableDeclarations;
import org.openrewrite.java.tree.J.VariableDeclarations.NamedVariable;
import org.openrewrite.java.tree.JavaType;
import org.openrewrite.java.tree.JavaType.Class;
import org.openrewrite.java.tree.JavaType;
import org.openrewrite.java.tree.JavaType.Class;

Expand Down

0 comments on commit e6a05c6

Please sign in to comment.