Skip to content

Commit 0227446

Browse files
authored
chore: fix build (#343)
* chore: fix build Signed-off-by: Stephane Bouchet <[email protected]> * chore: fix build Signed-off-by: Stephane Bouchet <[email protected]> * chore: fix build Signed-off-by: Stephane Bouchet <[email protected]> --------- Signed-off-by: Stephane Bouchet <[email protected]>
1 parent 92e049f commit 0227446

File tree

5 files changed

+68
-132
lines changed

5 files changed

+68
-132
lines changed

.github/workflows/ci.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,28 @@ jobs:
2929
name: prInfo
3030
path: prInfo/
3131

32+
verify_dependencies:
33+
runs-on: ubuntu-latest
34+
if: github.event_name == 'pull_request'
35+
36+
steps:
37+
- uses: actions/checkout@v4
38+
- name: Set up JDK 17
39+
uses: actions/setup-java@v4
40+
with:
41+
java-version: 17
42+
distribution: 'temurin'
43+
cache: 'gradle'
44+
- name: Run verification dependency
45+
run: |
46+
./gradlew --dependency-verification strict build
47+
- name: Archiving reports
48+
uses: actions/upload-artifact@v4
49+
with:
50+
name: dependency-reports
51+
path: build/reports/dependency-verification/*
52+
if: always()
53+
3254
run_on_linux:
3355
runs-on: ubuntu-latest
3456

CONTRIBUTING.md

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ Package <i>fixtures</i> contains several predefined fixtures that can be instant
1919

2020
### 2) Package <i>utils</i>
2121

22-
Package <i>utils</i> contains static methods and constants that can be useful for writing IntelliJ IDEA UI tests. There are for example methods for taking sceenshots or creating new project without the need of implementing the whole process using provided fixtures.
22+
Package <i>utils</i> contains static methods and constants that can be useful for writing IntelliJ IDEA UI tests. There are for example methods for taking screenshots or creating new project without the need of implementing the whole process using provided fixtures.
2323

2424
### 3) Package <i>exceptions</i>
2525

26-
Package <i>exceptions</i> contains predefined exceptions for handling situation such as the object that I am creating fixture for does not exists or there is unrelevant or unsupported option passed into a method.
26+
Package <i>exceptions</i> contains predefined exceptions for handling situation such as the object that I am creating fixture for does not exist or there is un-relevant or unsupported option passed into a method.
2727

2828
### 4) Class <i>UITestRunner</i>
2929

@@ -59,18 +59,9 @@ $ cd ./src/test-project
5959
$ ./gradlew clean integrationUITest
6060
```
6161

62-
To execute the JUnit 5 tests with **Ultimate** version of IntelliJ:
63-
1. Decrypt **idea.key.gpg** file inside `./src/test-project/idea_license_key`
64-
2. Run the following commands:
65-
```
66-
$ cd ./src/test-project
67-
$ ./gradlew clean integrationUITestUltimate
68-
```
69-
70-
7162
## Reporting Issues
7263

73-
If you encounter a problem and know it is caused by the IntelliJ IDEA UI test library, please open an [issue report](https://github.com/redhat-developer/intellij-common-ui-test-library/issues). We really do appriciate any relevant issue report containg at least description and steps to reproduce the issue.
64+
If you encounter a problem and know it is caused by the IntelliJ IDEA UI test library, please open an [issue report](https://github.com/redhat-developer/intellij-common-ui-test-library/issues). We really do appreciate any relevant issue report containing at least description and steps to reproduce the issue.
7465

7566

7667
## License

README.md

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Welcome to the IntelliJ IDEA UI test library project! Here you'll find several pieces of information and advices on how to setup, use and contribute to this library.
1+
Welcome to the IntelliJ IDEA UI test library project! Here you'll find several pieces of information and advices on how to set up, use and contribute to this library.
22

33
## Purpose of this project
44
This project allows you to create automated UI tests for your IntelliJ IDEA plugin project. Using this library you are able to access UI elements such as buttons, inputs, tree elements etc. and perform actions with them. Navigating through wizards, clicking on buttons or editing file content of newly created project could be automated using this library.
@@ -10,17 +10,14 @@ Please submit an [issue](https://github.com/redhat-developer/intellij-common-ui-
1010
Feel free to contribute to this project! See the [contribution guide](https://github.com/redhat-developer/intellij-common-ui-test-library/blob/main/CONTRIBUTING.md) for more details.
1111

1212
## Quick setup
13-
The setup of this library is easy - just extend the **build.gradle** file as described in the following steps and you are ready to write your first UI test.
13+
The setup of this library is easy - just extend the **build.gradle.kts** file as described in the following steps, and you are ready to write your first UI test.
1414

1515
### STEP #1: Adding repositories
1616
You need to add the following nexus and JetBrains repositories:
1717
```
1818
repositories {
1919
maven {
20-
url 'https://repository.jboss.org/nexus/content/repositories/snapshots'
21-
}
22-
maven {
23-
url 'https://repository.jboss.org/nexus/content/groups/public'
20+
url 'https://raw.githubusercontent.com/redhat-developer/intellij-common-ui-test-library/repository/'
2421
}
2522
maven {
2623
url 'https://packages.jetbrains.team/maven/p/ij/intellij-dependencies'
@@ -32,7 +29,7 @@ repositories {
3229
Add the following dependency:
3330
```
3431
dependencies {
35-
compile 'com.redhat.devtools.intellij:intellij-common-ui-test-library:0.4.3'
32+
compile 'com.redhat.devtools.intellij:intellij-common-ui-test-library:0.4.4'
3633
}
3734
```
3835

@@ -43,8 +40,8 @@ sourceSets {
4340
integrationTest {
4441
java.srcDir file('src/it/java')
4542
resources.srcDir file('src/it/resources')
46-
compileClasspath += sourceSets.main.output + configurations.testRuntime
47-
runtimeClasspath += output + compileClasspath
43+
compileClasspath += sourceSets.main.get().compileClasspath + sourceSets.test.get().compileClasspath
44+
runtimeClasspath += output + compileClasspath + sourceSets.test.get().runtimeClasspath
4845
}
4946
}
5047
```
@@ -90,7 +87,7 @@ task integrationTest(type: Test) {
9087
...
9188
}
9289
```
93-
Or add the location as a paramater for gradlew command which runs the test. For example:
90+
Or add the location as a parameter for gradlew command which runs the test. For example:
9491
```
9592
systemProperties['testProjectLocation'] = project.hasProperty('testProjectLocation') ? project.property('testProjectLocation') : null
9693
@@ -127,7 +124,7 @@ public static void closeIde() {
127124
```
128125

129126
## What next? Implement your first UI test!
130-
After you manage to setup this library to your project and successfully start and quit IntelliJ IDEA, there is no more setup needed. Just start writing your UI tests! Here are some examples that will help you get started:
127+
After you manage to set up this library to your project and successfully start and quit IntelliJ IDEA, there is no more setup needed. Just start writing your UI tests! Here are some examples that will help you get started:
131128

132129
### Create your first fixture
133130
Create an instance of a FlatWelcomeFrame class which allows you to access the 'Welcome to IntelliJ IDEA' dialog's UI.

gradle.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,6 @@ projectVersion=0.4.4-SNAPSHOT
22

33
# Gradle Releases -> https://github.com/gradle/gradle/releases
44
gradleVersion=8.5
5+
6+
# do not verify dependency locally by default. https://docs.gradle.org/current/userguide/dependency_verification.html#sec:disabling-verification
7+
org.gradle.dependency.verification=lenient

0 commit comments

Comments
 (0)