Skip to content

Conversation

@arontsang
Copy link
Contributor

fixes #182

@arontsang
Copy link
Contributor Author

@tomasbjerre Hi Tomas, I can't seem to get this PR to build correctly. Seems to be some kind of code formatting rule that prevents me from building.

Not sure what the rule is, can you please take a look?

@arontsang arontsang force-pushed the master branch 2 times, most recently from 9a72cea to 3d0680b Compare September 15, 2023 05:54
@tomasbjerre
Copy link
Owner

@tomasbjerre Hi Tomas, I can't seem to get this PR to build correctly. Seems to be some kind of code formatting rule that prevents me from building.

Not sure what the rule is, can you please take a look?

The code will be formatted when you do ./gradlew googleJavaFormat

Unless you are using Java 17: https://github.com/tomasbjerre/gradle-scripts/blob/master/src/main/resources/main.gradle#L132

@arontsang
Copy link
Contributor Author

@tomasbjerre Hi Tomas, I can't seem to get this PR to build correctly. Seems to be some kind of code formatting rule that prevents me from building.
Not sure what the rule is, can you please take a look?

The code will be formatted when you do ./gradlew googleJavaFormat

Unless you are using Java 17: https://github.com/tomasbjerre/gradle-scripts/blob/master/src/main/resources/main.gradle#L132

Sigh...silly me, using the LTS Java. I probably should have Java 8 like everyone else...

@arontsang
Copy link
Contributor Author

@tomasbjerre Thank you for your help. Built successfully now.

@tomasbjerre
Copy link
Owner

@tomasbjerre Hi Tomas, I can't seem to get this PR to build correctly. Seems to be some kind of code formatting rule that prevents me from building.
Not sure what the rule is, can you please take a look?

The code will be formatted when you do ./gradlew googleJavaFormat
Unless you are using Java 17: https://github.com/tomasbjerre/gradle-scripts/blob/master/src/main/resources/main.gradle#L132

Sigh...silly me, using the LTS Java. I probably should have Java 8 like everyone else...

There is a newer version of the Google Java Format plugin that runs on 17, but it will not run on 8. So if upgrading build script to that I can no longer verify builds with 8.... it is not perfect :)

@tomasbjerre
Copy link
Owner

Can you supply a log that is currently not possible to parse:
https://github.com/tomasbjerre/violations-lib/tree/master/src/test/resources/msbuildlog

And add test case here:
https://github.com/tomasbjerre/violations-lib/blob/master/src/test/java/se/bjurr/violations/lib/MSBuildLogTest.java

The test case that is currently implemented seems to have MSBuild in C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild so I am not exactly sure what this fixes.

@arontsang
Copy link
Contributor Author

@tomasbjerre The new SDK style projects have a lot more warnings.

I've added a unit test to test for incompatible nuget dependencies and incompatible 'in solution' dependencies.

@tomasbjerre tomasbjerre merged commit 1f8d56d into tomasbjerre:master Sep 17, 2023
@tomasbjerre
Copy link
Owner

Thanks, releasing this now.

@arontsang
Copy link
Contributor Author

@tomasbjerre Thank you very much. Very fast response.

I would also appreciate it if you bump the Jenkins plug in as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants