質問編集履歴

3

バージョン追加

2024/04/20 03:38

投稿

hfuob
hfuob

スコア8

test CHANGED
File without changes
test CHANGED
@@ -133,16 +133,15 @@
133
133
 
134
134
  ##### 上記の詳細・結果
135
135
  下記のURLを参考にしました。
136
-
137
- Gradle 4.x で「Could not resolve all artifacts for configuration」のエラーが出たときの対処方法
138
136
  https://shinsuke789.hatenablog.jp/entry/2018/09/25/110000
139
137
 
138
+ https://stackoverflow.com/questions/76016825/could-not-resolve-all-files-for-configuration-classpath-android-studio-updat
140
139
 
141
140
 
142
141
  ### 補足
143
142
  <開発環境>
144
- PG:Java
143
+ PG:Java17.0.11
145
- FW:Spring(gradle)
144
+ FW:Spring3.2.4(gradle8.7)
146
- DB:postgresql
145
+ DB:postgresql12.18
147
- IDE:eclipse
146
+ IDE:eclipse2023-12 (4.30.0)
148
147
 

2

build.gradle追加

2024/04/19 13:49

投稿

hfuob
hfuob

スコア8

test CHANGED
File without changes
test CHANGED
@@ -116,6 +116,7 @@
116
116
  annotationProcessor 'org.projectlombok:lombok'
117
117
  testImplementation 'org.springframework.boot:spring-boot-starter-test'
118
118
  implementation 'org.springframework.boot:spring-boot-starter-validation'
119
+ classpath 'org.springframework.boot:spring-boot-gradle-plugin:3.2.4.RELEASE'
119
120
  }
120
121
 
121
122
  tasks.named('test') {

1

エラー文追加

2024/04/19 13:47

投稿

hfuob
hfuob

スコア8

test CHANGED
File without changes
test CHANGED
@@ -9,6 +9,16 @@
9
9
 
10
10
  ### エラーメッセージ
11
11
  ```error
12
+ -----> Building on the Heroku-22 stack
13
+ -----> Determining which buildpack to use for this app
14
+ -----> Gradle app detected
15
+ -----> Spring Boot detected
16
+ -----> Installing OpenJDK 1.8... done
17
+ -----> Building Gradle app...
18
+ -----> executing ./gradlew build -x check
19
+ Downloading https://services.gradle.org/distributions/gradle-8.7-bin.zip
20
+ ............10%.............20%.............30%.............40%............50%.............60%.............70%.............80%.............90%............100%
21
+ To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/8.7/userguide/gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation.
12
22
  Daemon will be stopped at the end of the build
13
23
 
14
24
  FAILURE: Build failed with an exception.
@@ -48,6 +58,26 @@
48
58
  - Doesn't say anything about its elements (required them packaged as a jar)
49
59
  - Doesn't say anything about its target Java version (required compatibility with Java 8)
50
60
  - Doesn't say anything about org.gradle.plugin.api-version (required '8.7')
61
+
62
+ * Try:
63
+ > Review the variant matching algorithm at https://docs.gradle.org/8.7/userguide/variant_attributes.html#sec:abm_algorithm.
64
+ > No matching variant errors are explained in more detail at https://docs.gradle.org/8.7/userguide/variant_model.html#sub:variant-no-match.
65
+ > Run with --stacktrace option to get the stack trace.
66
+ > Run with --info or --debug option to get more log output.
67
+ > Run with --scan to get full insights.
68
+ > Get more help at https://help.gradle.org.
69
+
70
+ BUILD FAILED in 10s
71
+ ! ERROR: Failed to run Gradle!
72
+ We're sorry this build is failing. If you can't find the issue in application
73
+ code, please submit a ticket so we can help: https://help.heroku.com
74
+ You can also try reverting to the previous version of the buildpack by running:
75
+ $ heroku buildpacks:set https://github.com/heroku/heroku-buildpack-gradle#previous-version
76
+
77
+ Thanks,
78
+ Heroku
79
+ ! Push rejected, failed to compile Gradle app.
80
+ ! Push failed
51
81
  ```
52
82
 
53
83
  ### 該当のソースコード