Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add kotlin formatting plugin #27673

Merged
merged 1 commit into from
Sep 7, 2022
Merged

Add kotlin formatting plugin #27673

merged 1 commit into from
Sep 7, 2022

Conversation

evanchooly
Copy link
Member

this change will cause the kotlin sources to be formatted and cleaned up the same way the java sources are.

@quarkus-bot

This comment has been minimized.

@quarkus-bot quarkus-bot bot added the area/devtools Issues/PR related to maven, gradle, platform and cli tooling/plugins label Sep 1, 2022
@quarkus-bot

This comment has been minimized.

Comment on lines +778 to +819
<profile>
<id>format-kotlin</id>
<activation>
<activeByDefault>true</activeByDefault>
<property>
<name>!no-format</name>
</property>
<file>
<exists>src/main/kotlin</exists>
</file>
</activation>
<build>
<plugins>
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<version>2.25.0</version>
<executions>
<execution>
<id>format-kotlin</id>
<phase>process-sources</phase>
<goals>
<goal>apply</goal>
</goals>
</execution>
</executions>

<configuration>
<kotlin>
<!--
<ktfmt>
<style>DEFAULT</style> &lt;!&ndash; optional, other options are DEFAULT, DROPBOX, GOOGLE and KOTLINLANG &ndash;&gt;
</ktfmt>
-->
<ktlint/>

</kotlin>
</configuration>
</plugin>
</plugins>
</build>
</profile>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really need a different profile? Would it not be better to use the existing profiles?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm ok combining them but this one also looks for the existence of kotlin sources to activate. So it's not trying to do work most of the time. It might be a microoptimization but it made sense at the time. @gsmet?

@quarkus-bot
Copy link

quarkus-bot bot commented Sep 6, 2022

Failing Jobs - Building 5c8c077

Status Name Step Failures Logs Raw logs
✔️ JVM Tests - JDK 11
JVM Tests - JDK 17 Build Failures Logs Raw logs
✔️ JVM Tests - JDK 18

Full information is available in the Build summary check run.

Failures

⚙️ JVM Tests - JDK 17 #

- Failing: extensions/smallrye-reactive-messaging-kafka/deployment 
! Skipped: integration-tests/kafka-oauth-keycloak integration-tests/kafka-sasl-elytron integration-tests/kubernetes/quarkus-standard-way-kafka and 3 more

📦 extensions/smallrye-reactive-messaging-kafka/deployment

io.quarkus.smallrye.reactivemessaging.kafka.deployment.testing.KafkaDevServicesContinuousTestingTestCase.testContinuousTestingScenario1 line 59 - More details - Source on GitHub

org.awaitility.core.ConditionTimeoutException: Failed to wait for test run 4 State{lastRun=3, running=true, inProgress=true, run=1, passed=0, failed=1, skipped=0, isBrokenOnly=false, isTestOutput=false, isInstrumentationBasedReload=false, isLiveReload=true}
	at io.quarkus.test.ContinuousTestingTestUtils.waitForNextCompletion(ContinuousTestingTestUtils.java:44)
	at io.quarkus.smallrye.reactivemessaging.kafka.deployment.testing.KafkaDevServicesContinuousTestingTestCase.testContinuousTestingScenario1(KafkaDevServicesContinuousTestingTestCase.java:59)

@evanchooly
Copy link
Member Author

The failures look unrelated at this point. What do we think about this one?

@evanchooly evanchooly requested a review from geoand September 6, 2022 22:13
@geoand
Copy link
Contributor

geoand commented Sep 7, 2022

Yeah, it's a flaky test

@evanchooly evanchooly merged commit bc45181 into quarkusio:main Sep 7, 2022
@quarkus-bot quarkus-bot bot added this to the 2.13 - main milestone Sep 7, 2022
@evanchooly evanchooly deleted the kotlin-format branch September 7, 2022 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/dependencies Pull requests that update a dependency file area/devtools Issues/PR related to maven, gradle, platform and cli tooling/plugins area/kotlin area/panache area/reactive-messaging area/rest area/scheduler area/smallrye
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants