Skip to content

Commit 0afa735

Browse files
committed
Use the test scope for test dependencies
1 parent 98157d3 commit 0afa735

File tree

11 files changed

+106
-69
lines changed

11 files changed

+106
-69
lines changed

envers/envers-5/pom.xml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,23 @@
1919
<artifactId>hibernate-envers</artifactId>
2020
<version>${version.org.hibernate}</version>
2121
</dependency>
22-
<dependency>
23-
<groupId>org.hibernate</groupId>
24-
<artifactId>hibernate-testing</artifactId>
25-
<version>${version.org.hibernate}</version>
26-
</dependency>
27-
2822
<dependency>
2923
<groupId>com.h2database</groupId>
3024
<artifactId>h2</artifactId>
3125
<version>${version.com.h2database}</version>
3226
</dependency>
27+
28+
<dependency>
29+
<groupId>org.hibernate</groupId>
30+
<artifactId>hibernate-testing</artifactId>
31+
<version>${version.org.hibernate}</version>
32+
<scope>test</scope>
33+
</dependency>
3334
<dependency>
3435
<groupId>junit</groupId>
3536
<artifactId>junit</artifactId>
3637
<version>${version.junit}</version>
38+
<scope>test</scope>
3739
</dependency>
3840
</dependencies>
3941

envers/envers-6/pom.xml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,20 +30,22 @@
3030
<groupId>org.hibernate.orm</groupId>
3131
<artifactId>hibernate-envers</artifactId>
3232
</dependency>
33-
<dependency>
34-
<groupId>org.hibernate.orm</groupId>
35-
<artifactId>hibernate-testing</artifactId>
36-
</dependency>
37-
3833
<dependency>
3934
<groupId>com.h2database</groupId>
4035
<artifactId>h2</artifactId>
4136
<version>${version.com.h2database}</version>
4237
</dependency>
38+
39+
<dependency>
40+
<groupId>org.hibernate.orm</groupId>
41+
<artifactId>hibernate-testing</artifactId>
42+
<scope>test</scope>
43+
</dependency>
4344
<dependency>
4445
<groupId>junit</groupId>
4546
<artifactId>junit</artifactId>
4647
<version>${version.junit}</version>
48+
<scope>test</scope>
4749
</dependency>
4850
</dependencies>
4951

orm/hibernate-orm-5/pom.xml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,11 @@
1919
<artifactId>hibernate-core</artifactId>
2020
<version>${version.org.hibernate}</version>
2121
</dependency>
22-
<dependency>
23-
<groupId>org.hibernate</groupId>
24-
<artifactId>hibernate-testing</artifactId>
25-
<version>${version.org.hibernate}</version>
26-
</dependency>
27-
2822
<dependency>
2923
<groupId>com.h2database</groupId>
3024
<artifactId>h2</artifactId>
3125
<version>${version.com.h2database}</version>
3226
</dependency>
33-
<dependency>
34-
<groupId>junit</groupId>
35-
<artifactId>junit</artifactId>
36-
<version>${version.junit}</version>
37-
</dependency>
3827

3928
<!-- Not necessary for ORM 5.2 and above -->
4029
<dependency>
@@ -47,6 +36,19 @@
4736
<artifactId>hibernate-java8</artifactId>
4837
<version>${version.org.hibernate}</version>
4938
</dependency>
39+
40+
<dependency>
41+
<groupId>org.hibernate</groupId>
42+
<artifactId>hibernate-testing</artifactId>
43+
<version>${version.org.hibernate}</version>
44+
<scope>test</scope>
45+
</dependency>
46+
<dependency>
47+
<groupId>junit</groupId>
48+
<artifactId>junit</artifactId>
49+
<version>${version.junit}</version>
50+
<scope>test</scope>
51+
</dependency>
5052
</dependencies>
5153

5254
<build>

orm/hibernate-orm-6/pom.xml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,32 +38,37 @@
3838
<groupId>org.hibernate.orm</groupId>
3939
<artifactId>hibernate-core</artifactId>
4040
</dependency>
41-
<dependency>
42-
<groupId>org.hibernate.orm</groupId>
43-
<artifactId>hibernate-testing</artifactId>
44-
</dependency>
45-
4641
<dependency>
4742
<groupId>com.h2database</groupId>
4843
<artifactId>h2</artifactId>
4944
<version>${version.com.h2database}</version>
5045
</dependency>
46+
47+
<dependency>
48+
<groupId>org.hibernate.orm</groupId>
49+
<artifactId>hibernate-testing</artifactId>
50+
<scope>test</scope>
51+
</dependency>
5152
<dependency>
5253
<groupId>org.junit.jupiter</groupId>
5354
<artifactId>junit-jupiter</artifactId>
55+
<scope>test</scope>
5456
</dependency>
5557
<dependency>
5658
<groupId>org.junit.platform</groupId>
5759
<artifactId>junit-platform-launcher</artifactId>
60+
<scope>test</scope>
5861
</dependency>
5962
<dependency>
6063
<groupId>org.junit.jupiter</groupId>
6164
<artifactId>junit-jupiter-engine</artifactId>
65+
<scope>test</scope>
6266
</dependency>
6367
<dependency>
6468
<groupId>org.assertj</groupId>
6569
<artifactId>assertj-core</artifactId>
6670
<version>${version.org.assertj.assertj-core}</version>
71+
<scope>test</scope>
6772
</dependency>
6873
</dependencies>
6974

search/hibernate-search-5/elasticsearch-2/pom.xml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,6 @@
2727
<artifactId>hibernate-search-orm</artifactId>
2828
<version>${version.org.hibernate.search}</version>
2929
</dependency>
30-
<dependency>
31-
<groupId>org.hibernate</groupId>
32-
<artifactId>hibernate-search-testing</artifactId>
33-
<version>${version.org.hibernate.search}</version>
34-
</dependency>
3530
<dependency>
3631
<groupId>org.hibernate</groupId>
3732
<artifactId>hibernate-search-elasticsearch</artifactId>
@@ -59,10 +54,18 @@
5954
<artifactId>h2</artifactId>
6055
<version>${version.com.h2database}</version>
6156
</dependency>
57+
58+
<dependency>
59+
<groupId>org.hibernate</groupId>
60+
<artifactId>hibernate-search-testing</artifactId>
61+
<version>${version.org.hibernate.search}</version>
62+
<scope>test</scope>
63+
</dependency>
6264
<dependency>
6365
<groupId>junit</groupId>
6466
<artifactId>junit</artifactId>
6567
<version>${version.junit}</version>
68+
<scope>test</scope>
6669
</dependency>
6770
</dependencies>
6871

search/hibernate-search-5/elasticsearch-5/pom.xml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,6 @@
2727
<artifactId>hibernate-search-orm</artifactId>
2828
<version>${version.org.hibernate.search}</version>
2929
</dependency>
30-
<dependency>
31-
<groupId>org.hibernate</groupId>
32-
<artifactId>hibernate-search-testing</artifactId>
33-
<version>${version.org.hibernate.search}</version>
34-
</dependency>
3530
<dependency>
3631
<groupId>org.hibernate</groupId>
3732
<artifactId>hibernate-search-elasticsearch</artifactId>
@@ -48,21 +43,30 @@
4843
<artifactId>hibernate-entitymanager</artifactId>
4944
<version>${version.org.hibernate}</version>
5045
</dependency>
46+
47+
<dependency>
48+
<groupId>com.h2database</groupId>
49+
<artifactId>h2</artifactId>
50+
<version>${version.com.h2database}</version>
51+
</dependency>
52+
5153
<dependency>
5254
<groupId>org.hibernate</groupId>
5355
<artifactId>hibernate-testing</artifactId>
5456
<version>${version.org.hibernate}</version>
57+
<scope>test</scope>
5558
</dependency>
56-
5759
<dependency>
58-
<groupId>com.h2database</groupId>
59-
<artifactId>h2</artifactId>
60-
<version>${version.com.h2database}</version>
60+
<groupId>org.hibernate</groupId>
61+
<artifactId>hibernate-search-testing</artifactId>
62+
<version>${version.org.hibernate.search}</version>
63+
<scope>test</scope>
6164
</dependency>
6265
<dependency>
6366
<groupId>junit</groupId>
6467
<artifactId>junit</artifactId>
6568
<version>${version.junit}</version>
69+
<scope>test</scope>
6670
</dependency>
6771
</dependencies>
6872

search/hibernate-search-5/lucene/pom.xml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,6 @@
2424
<artifactId>hibernate-search-orm</artifactId>
2525
<version>${version.org.hibernate.search}</version>
2626
</dependency>
27-
<dependency>
28-
<groupId>org.hibernate</groupId>
29-
<artifactId>hibernate-search-testing</artifactId>
30-
<version>${version.org.hibernate.search}</version>
31-
</dependency>
3227

3328
<dependency>
3429
<groupId>org.hibernate</groupId>
@@ -40,21 +35,24 @@
4035
<artifactId>hibernate-entitymanager</artifactId>
4136
<version>${version.org.hibernate}</version>
4237
</dependency>
43-
<dependency>
44-
<groupId>org.hibernate</groupId>
45-
<artifactId>hibernate-testing</artifactId>
46-
<version>${version.org.hibernate}</version>
47-
</dependency>
4838

4939
<dependency>
5040
<groupId>com.h2database</groupId>
5141
<artifactId>h2</artifactId>
5242
<version>${version.com.h2database}</version>
5343
</dependency>
44+
45+
<dependency>
46+
<groupId>org.hibernate</groupId>
47+
<artifactId>hibernate-search-testing</artifactId>
48+
<version>${version.org.hibernate.search}</version>
49+
<scope>test</scope>
50+
</dependency>
5451
<dependency>
5552
<groupId>junit</groupId>
5653
<artifactId>junit</artifactId>
5754
<version>${version.junit}</version>
55+
<scope>test</scope>
5856
</dependency>
5957
</dependencies>
6058

search/hibernate-search-6/orm-elasticsearch/pom.xml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,26 +39,30 @@
3939
<artifactId>hibernate-core</artifactId>
4040
<version>${version.org.hibernate}</version>
4141
</dependency>
42-
<dependency>
43-
<groupId>org.hibernate</groupId>
44-
<artifactId>hibernate-testing</artifactId>
45-
<version>${version.org.hibernate}</version>
46-
</dependency>
4742

4843
<dependency>
4944
<groupId>com.h2database</groupId>
5045
<artifactId>h2</artifactId>
5146
<version>${version.com.h2database}</version>
5247
</dependency>
48+
49+
<dependency>
50+
<groupId>org.hibernate</groupId>
51+
<artifactId>hibernate-testing</artifactId>
52+
<version>${version.org.hibernate}</version>
53+
<scope>test</scope>
54+
</dependency>
5355
<dependency>
5456
<groupId>junit</groupId>
5557
<artifactId>junit</artifactId>
5658
<version>${version.junit}</version>
59+
<scope>test</scope>
5760
</dependency>
5861
<dependency>
5962
<groupId>org.assertj</groupId>
6063
<artifactId>assertj-core</artifactId>
6164
<version>${version.org.assertj.assertj-core}</version>
65+
<scope>test</scope>
6266
</dependency>
6367
</dependencies>
6468

search/hibernate-search-6/orm-lucene/pom.xml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,26 +36,30 @@
3636
<artifactId>hibernate-core</artifactId>
3737
<version>${version.org.hibernate}</version>
3838
</dependency>
39-
<dependency>
40-
<groupId>org.hibernate</groupId>
41-
<artifactId>hibernate-testing</artifactId>
42-
<version>${version.org.hibernate}</version>
43-
</dependency>
4439

4540
<dependency>
4641
<groupId>com.h2database</groupId>
4742
<artifactId>h2</artifactId>
4843
<version>${version.com.h2database}</version>
4944
</dependency>
45+
46+
<dependency>
47+
<groupId>org.hibernate</groupId>
48+
<artifactId>hibernate-testing</artifactId>
49+
<version>${version.org.hibernate}</version>
50+
<scope>test</scope>
51+
</dependency>
5052
<dependency>
5153
<groupId>junit</groupId>
5254
<artifactId>junit</artifactId>
5355
<version>${version.junit}</version>
56+
<scope>test</scope>
5457
</dependency>
5558
<dependency>
5659
<groupId>org.assertj</groupId>
5760
<artifactId>assertj-core</artifactId>
5861
<version>${version.org.assertj.assertj-core}</version>
62+
<scope>test</scope>
5963
</dependency>
6064
</dependencies>
6165

search/hibernate-search-7/orm-elasticsearch/pom.xml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,36 +77,43 @@
7777
<groupId>org.hibernate.orm</groupId>
7878
<artifactId>hibernate-core</artifactId>
7979
</dependency>
80-
<dependency>
81-
<groupId>org.hibernate.orm</groupId>
82-
<artifactId>hibernate-testing</artifactId>
83-
</dependency>
8480

8581
<dependency>
8682
<groupId>com.h2database</groupId>
8783
<artifactId>h2</artifactId>
8884
<version>${version.com.h2database}</version>
8985
</dependency>
86+
87+
<dependency>
88+
<groupId>org.hibernate.orm</groupId>
89+
<artifactId>hibernate-testing</artifactId>
90+
<scope>test</scope>
91+
</dependency>
9092
<dependency>
9193
<groupId>org.junit.jupiter</groupId>
9294
<artifactId>junit-jupiter</artifactId>
95+
<scope>test</scope>
9396
</dependency>
9497
<dependency>
9598
<groupId>org.junit.platform</groupId>
9699
<artifactId>junit-platform-launcher</artifactId>
100+
<scope>test</scope>
97101
</dependency>
98102
<dependency>
99103
<groupId>org.junit.jupiter</groupId>
100104
<artifactId>junit-jupiter-engine</artifactId>
105+
<scope>test</scope>
101106
</dependency>
102107
<dependency>
103108
<groupId>org.assertj</groupId>
104109
<artifactId>assertj-core</artifactId>
105110
<version>${version.org.assertj.assertj-core}</version>
111+
<scope>test</scope>
106112
</dependency>
107113
<dependency>
108114
<groupId>org.testcontainers</groupId>
109115
<artifactId>elasticsearch</artifactId>
116+
<scope>test</scope>
110117
</dependency>
111118
</dependencies>
112119

0 commit comments

Comments
 (0)