Commit 7ad6dc5 1 parent a596ac7 commit 7ad6dc5 Copy full SHA for 7ad6dc5
File tree 2 files changed +6
-7
lines changed
2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -106,13 +106,13 @@ pub fn get_default_tera_discovery_pattern() -> String {
106
106
TERA_DISCOVERY_PATTERN . to_string ( )
107
107
}
108
108
109
- pub const PLANTUML_VERSION : & str = "1.2022.4 " ;
109
+ pub const PLANTUML_VERSION : & str = "1.2024.7 " ;
110
110
111
111
pub fn get_default_plantuml_version ( ) -> String {
112
112
PLANTUML_VERSION . to_string ( )
113
113
}
114
114
115
- pub const PLANTUML_JAR : & str = ".cache/plantuml-1.2022.4 .jar" ;
115
+ pub const PLANTUML_JAR : & str = ".cache/plantuml-1.2024.7 .jar" ;
116
116
117
117
pub fn get_default_plantuml_jar ( ) -> String {
118
118
PLANTUML_JAR . to_string ( )
Original file line number Diff line number Diff line change @@ -4,9 +4,8 @@ use std::io::Write;
4
4
use std:: path:: Path ;
5
5
use std:: process:: Command ;
6
6
7
- use anyhow:: Result ;
8
-
9
7
use crate :: utils:: create_parent_directory;
8
+ use anyhow:: Result ;
10
9
11
10
#[ derive( Debug ) ]
12
11
pub struct PlantUML {
@@ -49,10 +48,9 @@ impl PlantUML {
49
48
Ok ( ( ) )
50
49
}
51
50
pub fn download ( & self ) -> Result < ( ) > {
52
- // https://netcologne.dl.sourceforge.net/project/plantuml/1.2022.4/plantuml.1.2022.4.jar
53
- // https://downloads.sourceforge.net/project/plantuml/1.2022.4/plantuml.1.2022.4.jar
51
+ // https://github.com/plantuml/plantuml/releases/download/v1.2024.7/plantuml-1.2024.7.jar
54
52
let url = format ! (
55
- "https://downloads.sourceforge.net/project /plantuml/{}/plantuml. {}.jar" ,
53
+ "https://github.com/plantuml /plantuml/releases/download/v {}/plantuml- {}.jar" ,
56
54
self . plantuml_version, self . plantuml_version,
57
55
) ;
58
56
@@ -70,6 +68,7 @@ impl PlantUML {
70
68
anyhow:: Error :: new ( e) . context ( format ! ( "unable to open {}" , & self . plantuml_jar) )
71
69
} ) ?;
72
70
71
+ log:: info!( "download the PlantUML jar from {}" , url) ;
73
72
reqwest:: blocking:: get ( & url)
74
73
. map_err ( |e| anyhow:: Error :: new ( e) . context ( format ! ( "unable to download {}" , & url) ) ) ?
75
74
. copy_to ( & mut destination_file)
You can’t perform that action at this time.
0 commit comments